Skip to content

Commit f664061

Browse files
authored
Create release.yml
1 parent 1fc1f9b commit f664061

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
permissions: write-all
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: チェックアウト
18+
uses: actions/checkout@v3
19+
- name: JDK 17をセットアップ
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
cache: maven
25+
- name: プラグインをビルド
26+
run: mvn -B package --file pom.xml
27+
- name: original-*.jarを削除
28+
run: rm target/original-*.jar
29+
- name: リリース
30+
uses: softprops/action-gh-release@v1
31+
with:
32+
tag_name: build-${{ github.run_number }}
33+
files: 'target/*.jar'

0 commit comments

Comments
 (0)