-
-
Notifications
You must be signed in to change notification settings - Fork 786
43 lines (41 loc) · 938 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Publish pre-build release
name: Create Github release
on:
push:
tags: [v*]
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: pnpm setup
uses: pnpm/action-setup@v4
-
name: Node.js setup
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
-
name: Build project
run: |
pnpm install --frozen-lockfile
pnpm build
-
name: Create artifact
working-directory: "dist"
run: zip -r ../homer.zip ./*
-
name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
files: |
homer.zip