Deploy to GitHub Pages #245
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to GitHub Pages | ||
| on: | ||
| workflow_run: | ||
| workflows: ["Build VitePress Site"] | ||
| types: | ||
| - completed | ||
| permissions: | ||
| actions: read | ||
| pages: write | ||
| id-token: write | ||
| contents: read | ||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
| jobs: | ||
| deploy: | ||
| if: ${{ github.event.workflow_run.conclusion == 'success' }} && github.actor != 'dependabot[bot]' | ||
|
Check warning on line 21 in .github/workflows/deploy.yml
|
||
| runs-on: ubuntu-latest | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| steps: | ||
| - name: Download artifact | ||
| id: download-artifact | ||
| uses: dawidd6/action-download-artifact@v13 | ||
| with: | ||
| name: vitepress-artifact | ||
| workflow: build.yml | ||
| path: dist | ||
| - name: Configure GitHub Pages | ||
| uses: actions/configure-pages@v5 | ||
| - name: Upload Pages Artifact | ||
| uses: actions/upload-pages-artifact@v4 | ||
| with: | ||
| path: dist | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@v4 | ||