Skip to content

Commit 5082c99

Browse files
committed
chore: add Playroom deployment
1 parent 6eaa5c0 commit 5082c99

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/playroom.yml

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

0 commit comments

Comments
 (0)