Skip to content

Commit

Permalink
ci: update gh workflow for pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jul 27, 2024
1 parent eb402c6 commit abeae01
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ on:
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
uses: hotosm/gh-workflows/.github/workflows/[email protected]
Expand All @@ -23,11 +17,19 @@ jobs:

deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment origin
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Expand Down

0 comments on commit abeae01

Please sign in to comment.