⬆️ chore(CI): update gh-actions deployment deps (#387)
this bumps: - actions/configure-pages: v3 -> v5 - actions/upload-pages-artifact: v2 -> v3 - actions/deploy-pages: v2 -> v4
This commit is contained in:
@@ -30,25 +30,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --omit=dev
|
run: npm ci --omit=dev
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build:prod
|
run: npm run build:prod
|
||||||
|
|
||||||
- name: Copy index.html to 404.html
|
- name: Copy index.html to 404.html
|
||||||
# see https://stackoverflow.com/a/76148302
|
# see https://stackoverflow.com/a/76148302
|
||||||
run: cp ./dist/index.html ./dist/404.html
|
run: cp ./dist/index.html ./dist/404.html
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v5
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
# Upload dist repository
|
|
||||||
path: './dist'
|
path: './dist'
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user