Skip to content

Commit 266d2fc

Browse files
committed
ci: Build vintage project automatically
1 parent 3b461e4 commit 266d2fc

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write # required to create releases
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: "1.25.5"
24+
25+
- name: Install Vintage
26+
run: |
27+
go install github.com/bbfh-dev/vintage@v0.2.7-beta.1
28+
29+
- name: Build
30+
run: |
31+
vintage build --delete-unused-libs --force-stringify --zip --debug
32+
33+
- name: Upload artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
path: build/*.zip
37+
38+
release:
39+
name: Create GitHub Release
40+
runs-on: ubuntu-latest
41+
needs: build
42+
43+
steps:
44+
- name: Download all artifacts
45+
uses: actions/download-artifact@v4
46+
with:
47+
path: build
48+
49+
- name: Create release
50+
uses: softprops/action-gh-release@v2
51+
with:
52+
tag_name: ${{ github.ref_name }}
53+
name: Release ${{ github.ref_name }}
54+
draft: false
55+
prerelease: false
56+
files: build/**/*

0 commit comments

Comments
 (0)