Files
website/.gitea/workflows/build-release.yaml
T
WilliamSoderberg 2182a07ea1
Build & Attach Release / Build and Attach ZIP (release) Successful in 8s
Trigger workflow on release
2026-07-11 17:25:02 +02:00

39 lines
918 B
YAML

name: Build & Attach Release
on:
release:
types: [published]
jobs:
build-and-release:
name: Build and Attach ZIP
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies and Build
run: |
npm ci
npm run build
- name: Create ZIP archive
run: |
cd dist
zip -r ../lirkab-site.zip .
- name: Attach ZIP to Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body || 'Automated release of the Lirkab static site.' }}
files: lirkab-site.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}