Skip to content

Commit

Permalink
tweak: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zenkyuv committed Nov 27, 2023
1 parent 1740f71 commit 6960815
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
contents: read
pages: write
id-token: write

Expand All @@ -32,7 +32,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18'

- name: 📦 install dependencies
run: npm ci

Expand All @@ -49,13 +49,19 @@ jobs:
rm -rf node_modules
npm ci --omit=dev
- name: 🗃️ copy files
run: |
rm -rf x/node_modules x/s
cp -r node_modules/ x/
cp -r s/ x/
- name: 📝 configure pages
uses: actions/configure-pages@v2

- name: 📤 upload pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: './dist'
path: '.'

- name: 🚀 deploy to github pages
id: deployment
Expand Down

0 comments on commit 6960815

Please sign in to comment.