-
Notifications
You must be signed in to change notification settings - Fork 153
47 lines (40 loc) · 1.71 KB
/
playroom.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Playroom
on:
push:
branches:
- master
pull_request:
branches:
- "**"
env: # Set environment variables for every job and step in this workflow
CLICOLOR: "1" # Enable colors for *NIX commands
PY_COLORS: "1" # Enable colors for Python-based utilities
FORCE_COLOR: "1" # Force colors in the terminal
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pull-requests: write # for dependabot
contents: write # for deploying to GitHub Pages on master
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Node
uses: ./.github/actions/node
- name: Version test
run: |
echo $(git tag --list '@kiwicom/orbit-components@*')
echo $(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d')
echo $(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d' | sed -n 's|.*@||p')
echo $(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d' | sed -n 's|.*@||p' | sed 's/\./-/g')
echo "VERSION_TAG=$(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d' | sed -n 's|.*@||p' | sed 's/\./-/g')" >> $GITHUB_ENV
echo $VERSION_TAG
- name: Get DOMAIN
# if: ${{ github.event.inputs.dryrun == 'false' }}
# run: echo "PLAYROOM_DOMAIN=https://kiwicom-orbit-v${VERSION_TAG}.surge.sh" >> $GITHUB_ENV
run: |
echo $VERSION_TAG
echo "PLAYROOM_DOMAIN=https://kiwicom-orbit-v${VERSION_TAG}.surge.sh" >> $GITHUB_ENV
- name: Deploy to staging
run: echo $PLAYROOM_DOMAIN
# run: yarn components deploy:surge ${PLAYROOM_DOMAIN} --token ${{ secrets.SURGE_TOKEN }}