Skip to content

Commit

Permalink
Modernize GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
scymtym committed May 6, 2024
1 parent 5840918 commit 78e2c48
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/render-dpans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,29 @@ jobs:
echo -e '</head>\n' >> /tmp/output/index.html
echo -e '</html>\n' >> /tmp/output/index.html
- name: deploy-pages
uses: peaceiris/actions-gh-pages@v3
- name: Create artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/output
destination_dir: ./docs
path: /tmp/output

# Deploy to GitHub pages if main branch
deploy:
runs-on: ubuntu-latest
needs: build
# if: github.ref == 'refs/heads/main'

# 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 }}

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

0 comments on commit 78e2c48

Please sign in to comment.