aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows/deploy.yml
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-11 22:22:49 +0300
committerValentin Popov <valentin@popov.link>2024-09-11 22:22:49 +0300
commit492d4965c82f35cf4a8a1ea445001703c650d59f (patch)
tree2562b4f054b03cf1c24f66ce921c5bf3eb9518a8 /.gitea/workflows/deploy.yml
parent396f3dcc30bf81da0baf39a0f783dc0adb967d74 (diff)
downloadpopov.link-492d4965c82f35cf4a8a1ea445001703c650d59f.tar.xz
popov.link-492d4965c82f35cf4a8a1ea445001703c650d59f.zip
Added build step
Diffstat (limited to '.gitea/workflows/deploy.yml')
-rw-r--r--.gitea/workflows/deploy.yml21
1 files changed, 19 insertions, 2 deletions
diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml
index 8c3994d..8938d83 100644
--- a/.gitea/workflows/deploy.yml
+++ b/.gitea/workflows/deploy.yml
@@ -2,8 +2,25 @@ name: Deploy
on: [push, pull_request]
jobs:
- build_and_deploy:
- runs-on: self-hosted
+ 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"