Fixed deprecated deploy script

This commit is contained in:
2025-03-26 22:12:05 +01:00
committed by GitHub
parent 149dd04abd
commit a00aba41f0

View File

@@ -1,5 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages # Simple workflow for deploying static content to GitHub Pages
# From https://vitejs.dev/guide/static-deploy.html
name: Deploy static content to Pages name: Deploy static content to Pages
on: on:
@@ -32,21 +31,21 @@ jobs:
- 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@v4
with: with:
node-version: 18 node-version: 20
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm install run: npm ci
- name: Build - name: Build
run: npm run build run: npm run build
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v3 uses: actions/configure-pages@v4
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v2 uses: actions/upload-pages-artifact@v3
with: with:
# Upload dist repository # Upload dist folder
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