Skip to content

Commit

Permalink
Refactor github actions workflow to use only first-party actions for …
Browse files Browse the repository at this point in the history
…github pages deployment
  • Loading branch information
AnthonyByansi committed Jul 15, 2024
1 parent 2dc2ad4 commit 03819b0
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/ISSUE_TEMPLATE/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,21 @@ jobs:
cat README.md | markdown >> index.html
echo '</body></html>' >> index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: false
path: index.html

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-and-deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 03819b0

Please sign in to comment.