Gitea workflow
Fixed build failure
This commit is contained in:
@ -13,8 +13,28 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: npm install -g pnpm
|
||||
- run: pnpm install
|
||||
- run: pnpm run build
|
||||
- run: |
|
||||
mv dist/* /var/www/martial.no
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install dependencies
|
||||
run: echo y | npm exec -- pnpm install
|
||||
- name: Build
|
||||
run: npm exec -- pnpm build
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3 # Deprecated and v4+ is not supported for GHES
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
|
||||
deploy:
|
||||
runs-on: host
|
||||
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
- name: Move files to server
|
||||
run: |
|
||||
rm -rf /var/www/beta.martials.no/*
|
||||
cp -r dist/* /var/www/beta.martials.no
|
||||
|
Reference in New Issue
Block a user