chore: add Playroom deployment #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
git fetch --tags --quiet | |
echo "VERSION_TAG=$(git tag --list '@kiwicom/orbit-components@*' --sort=creatordate | sed '$!d' | sed -n '$ s|.*@||; s/\./-/gp')" >> $GITHUB_ENV | |
- 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 "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 }} |