Skip to content

Commit

Permalink
docs-deploy: refactor
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Jun 25, 2024
1 parent 0dcd769 commit 73f9cb5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ on:

jobs:
docs:
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: deps
run: |
Expand All @@ -21,10 +24,11 @@ jobs:
mkdir public
roffit < twa.1 > public/index.html
- name: deploy
uses: peaceiris/actions-gh-pages@v3.5.6
- name: upload docs artifact
uses: actions/upload-pages-artifact@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
force_orphan: true
path: ./public/

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 73f9cb5

Please sign in to comment.