Skip to content

cd

cd #21

Workflow file for this run

name: cd
on:
workflow_run:
workflows: [ci]
types: [completed]
branches: [main]
permissions:
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
contents: read
pages: write
id-token: write
# Sets the GITHUB_TOKEN permissions to allow downloading artifacts from other workflows
actions: read
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download build
uses: actions/download-artifact@v4
with:
name: build-artifact
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
path: ./dist/
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4