File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments