Split build and deploy into separate jobs
This commit is contained in:
parent
fcd17bfd3f
commit
4b9d3d6470
@ -21,6 +21,19 @@ jobs:
|
|||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: pnpm 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: |
|
run: |
|
||||||
mv dist/* /var/www/beta.martials.no
|
cp -r dist/* /var/www/beta.martials.no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user