Skip to content

Commit

Permalink
Fold pages-deploy workflow into existing CI workflow.
Browse files Browse the repository at this point in the history
I misread the documentation. Workflows can only access artufacts from
other jobs in the same workflow run, which means separating the deploy
workflow into its own file is a non-starter.
  • Loading branch information
nuclearsandwich committed Aug 20, 2024
1 parent 012771d commit bb825f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 33 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches: ["main"]


jobs:
compile:
runs-on: ubuntu-22.04
Expand All @@ -20,3 +21,20 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: output
deploy:
concurrency:
group: "pages"
cancel-in-progress: false
permissions:
contents: read
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
33 changes: 0 additions & 33 deletions .github/workflows/pages-deploy.yml

This file was deleted.

0 comments on commit bb825f7

Please sign in to comment.