Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
catnose99 committed Nov 15, 2023
1 parent 3266d8d commit 98a7a65
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,33 @@ on:
workflow_dispatch:

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: main

- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "18"

- name: Build
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
path: public
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v2

0 comments on commit 98a7a65

Please sign in to comment.