popov.link/.gitea/workflows/deploy.yml
Valentin Popov 492d4965c8
Some checks failed
Deploy / deploy (push) Failing after 14s
Deploy / build (push) Failing after 1m12s
Added build step
2024-09-11 19:22:49 +00:00

27 lines
572 B
YAML

name: Deploy
on: [push, pull_request]
jobs:
build:
container: gitea/runner-images:ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v4
with:
name: website
path: dist/
deploy:
runs-on: self-hosted
steps:
- uses: actions/download-artifact@v4
with:
name: website
- run: echo "Deploying to production"