mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-26 17:52:18 +01:00
update pages deploy
This commit is contained in:
parent
7211690522
commit
5a0be3104c
13
.github/workflows/pages.yml
vendored
13
.github/workflows/pages.yml
vendored
@ -30,26 +30,35 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
cache: "npm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
|
||||
- name: Set build env
|
||||
run: |
|
||||
echo "VITE_COMMIT_HASH=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
|
||||
echo "VITE_APP_VERSION=$(jq -r .version ./package.json)" >> $GITHUB_ENV
|
||||
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
- name: Redirect 404 to Index for SPA
|
||||
run: cp dist/index.html dist/404.html
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v3
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
# Upload dist repository
|
||||
path: "./dist"
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v2
|
||||
|
Loading…
x
Reference in New Issue
Block a user