Skip to content

Commit

Permalink
gh-pages
Browse files Browse the repository at this point in the history
test

test

test

test

test

test

upd

rename

comment out permissions
  • Loading branch information
inker committed Dec 21, 2023
1 parent 10f2892 commit 9b222ee
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ env:
on:
push:
branches:
- master
- gh-pages-pipeline

jobs:
deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,10 +31,11 @@ jobs:
run: npm ci --no-audit --no-progress
- name: Build
run: npm run build -- --env out=$GH_PAGES_DIR
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: ${{ env.GH_PAGES_DIR }} # The folder the action should deploy.
clean: true
path: ${{ env.GH_PAGES_DIR }}
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit 9b222ee

Please sign in to comment.