Skip to content

ci: update push paths #17

ci: update push paths

ci: update push paths #17

name: πŸ› Publish Playground
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
tests:
uses: ./.github/workflows/_tests.yml
secrets: inherit
publish:
name: πŸ› Publish Playground to GitHub Pages
# The type of runner that the job will run on
runs-on: ubuntu-latest
needs: tests
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4