Skip to content

Commit 1bbe461

Browse files
authored
Create main.yml
1 parent 3f1d405 commit 1bbe461

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up JDK 16
15+
uses: actions/setup-java@v1
16+
with:
17+
java-version: 16
18+
- name: Mavenを使ってビルド
19+
run: mvn --batch-mode --update-snapshots verify
20+
- name: パッケージをビルドの成果物としてリリース
21+
uses: softprops/action-gh-release@v1
22+
with:
23+
tag_name: release-v${{ github.run_number }}
24+
files: 'target/*.jar'

0 commit comments

Comments
 (0)