Skip to content

Commit

Permalink
chore: add Playroom deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkaaa committed Jan 15, 2025
1 parent 6eaa5c0 commit 8068db3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/playroom.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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: Get BRANCH_URL
# do not run on master branch
if: github.ref != 'refs/heads/master'
env:
BRANCH_NAME: ${{ github.head_ref }}
run: echo "BRANCH_URL=$(sed -e 's/[^a-zA-Z0-9]/-/g' <<< ${BRANCH_NAME})" >> $GITHUB_ENV

- name: Ref test
run: echo "$GITHUB_REF"

- name: Print Tag
run: echo ${{github.ref_name}}

0 comments on commit 8068db3

Please sign in to comment.