Split build and deploy into separate jobs
Some checks failed
Build and deploy website / build (push) Failing after 1m35s
Build and deploy website / deploy (push) Failing after 13s

This commit is contained in:
Martin Berg Alstad 2024-09-28 11:16:25 +02:00
parent fcd17bfd3f
commit 4b9d3d6470

View File

@ -21,6 +21,19 @@ jobs:
run: pnpm install
- name: Build
run: pnpm build
- name: Deploy
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
deploy:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
- name: Move files to server
run: |
mv dist/* /var/www/beta.martials.no
cp -r dist/* /var/www/beta.martials.no