Skip to content

Deploy to GitHub Pages #244

Deploy to GitHub Pages

Deploy to GitHub Pages #244

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Workflow syntax warning

.github/workflows/deploy.yml (Line: 21, Col: 9): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
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