Gitea workflow
All checks were successful
Build and deploy website / build (push) Successful in 1m39s
Build and deploy website / deploy (push) Successful in 2s

Fixed build failure
This commit is contained in:
Martin Berg Alstad
2024-09-27 22:13:39 +02:00
parent e5090f0101
commit 2bead91a32
6 changed files with 133 additions and 114 deletions

View File

@ -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