Skip to content

Commit

Permalink
build: delpoy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwallace22 committed Dec 9, 2023
1 parent ec7666d commit 5b6c6eb
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ jobs:
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist

- name: Deploy Success Comment
uses: mshick/add-pr-comment@v2
if: ${{ steps.deploy.outcome == 'success' }}
with:
message: |
## ✅ Deploy successful!
| View Docs | https://jpwallace22.github.io/use-react-workers |
|---|---|

0 comments on commit 5b6c6eb

Please sign in to comment.