Skip to content

build: delpoy workflow #6

build: delpoy workflow

build: delpoy workflow #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v1
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- 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 |
|---|---|