This commit is contained in:
parent
b9926ceb4b
commit
63a1949b1c
1 changed files with 28 additions and 0 deletions
28
.forgejo/workflows/build.yml
Normal file
28
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Build Astro Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build site
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
# You might want to add steps here to deploy your site
|
||||||
|
# For example, using rsync, scp, or a dedicated deployment tool
|
||||||
Loading…
Add table
Add a link
Reference in a new issue