Skip to content

Deploy Example Projects #394

Deploy Example Projects

Deploy Example Projects #394

name: Deploy Example Projects
on:
workflow_run:
workflows: ['Quality Control']
types: [completed]
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: pages
- uses: actions/checkout@v3
with:
path: master-branch
- uses: ./master-branch/.github/workflows/artifacts-download
with:
workflow-id: ${{ github.event.workflow_run.workflow_id }}
download-example-artifacts: true
example-artifacts-base-path: example-artifacts
- name: Deploy Example Projects to Github Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: pages # The branch the action should deploy to.
commit-message: Deploying example projects
folder: example-artifacts
target-folder: example-projects