Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ubermanu committed Dec 22, 2023
1 parent b3f8328 commit db8a7d7
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,35 @@ concurrency:
cancel-in-progress: true

jobs:
deploy:
publish:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build --base /audience/

- uses: actions/setup-node@v4
with:
node-version: 21
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- run: pnpm i
- run: pnpm build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
path: 'dist'
path: 'build'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v2

0 comments on commit db8a7d7

Please sign in to comment.