Skip to content

Deploy

Deploy #9

Workflow file for this run

name: Deploy
on:
workflow_run:
workflows: ["Build"]
branches: [main]
types:
- completed
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download build artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: main
name: build
path: dist/
- name: Download resume artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: main
name: resumes
path: dist/
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4