Skip to content

Deploy to GitHub Pages #34

Deploy to GitHub Pages

Deploy to GitHub Pages #34

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_run:
workflows: ["Playwright Tests"]
types:
- completed
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{github.token}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install, build, and upload site
uses: withastro/action@v0
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1