Skip to content

Commit 089dc49

Browse files
committed
(ci) add autobuilder
1 parent 61663fe commit 089dc49

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/autobuild.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# ref:
2+
# Writing Workflows:
3+
# https://docs.github.com/en/actions/writing-workflows
4+
# Setup Java JDK:
5+
# https://github.com/marketplace/actions/setup-java-jdk
6+
# And the github action env is clean by default so the project need to be pulled and checkout by job
7+
# https://github.com/marketplace/actions/checkout
8+
# otherwise there is nothing in the workspace folder (can also run git pull but this one make thing easy)
9+
# @v4 seems like the latest version matches v4.x.x for a job
10+
#
11+
name: AutoBuilder
12+
run-name: 'Auto build on ${{github.ref_type}} ${{github.ref_name}} #${{github.run_number}}'
13+
on: [push]
14+
jobs:
15+
Build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: setup jdk 21
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'oracle'
22+
java-version: '21'
23+
- name: checkout repo
24+
uses: actions/checkout@v4
25+
- name: build project with maven
26+
run: mvn --batch-mode package
27+
- name: upload artifacts
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: ${{github.event.repository.name}}-autobuild-${{github.run_number}}-git-${{github.sha}}.zip
31+
path: ./target/*.jar

0 commit comments

Comments
 (0)