Skip to content

Commit

Permalink
Action fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-clayton committed Jul 19, 2023
1 parent aa7ecba commit 40e3d12
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,23 @@ jobs:
uses: tonynv/asciidoctor-action@master
with:
program: "asciidoctor dragonhack.adoc"
- name: Deploy docs to ghpages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./
deploy:
# Add a dependency to the build job
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 originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2 # or the latest "vX.X.X" version tag for this actio

0 comments on commit 40e3d12

Please sign in to comment.