Skip to content

Commit 300cf32

Browse files
committed
initial github actions creation
1 parent d83bdae commit 300cf32

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-java@v4
18+
with:
19+
distribution: temurin
20+
java-version: '25'
21+
22+
- name: Fetch zb
23+
run: |
24+
curl -fL -o zb.jar https://github.com/AdamBien/zb/releases/latest/download/zb.jar
25+
26+
- name: Build
27+
working-directory: zsmith
28+
run: java -jar ../zb.jar
29+
30+
- name: Create Release
31+
uses: softprops/action-gh-release@v2
32+
with:
33+
tag_name: build-${{ github.run_number }}
34+
name: build-${{ github.run_number }} (${{ github.sha }})
35+
files: zsmith/zbo/zsmith.jar
36+
generate_release_notes: true

0 commit comments

Comments
 (0)