forked from nothub/SafeTPA
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 866 Bytes
/
ci.yaml
File metadata and controls
34 lines (29 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: 'Release'
on: [ push, pull_request ]
permissions:
contents: write
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- name: 'Checkout repository'
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: 'Validate gradlew'
uses: gradle/actions/wrapper-validation@v5
- name: 'Setup Java'
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
check-latest: true
cache: 'gradle'
- name: 'Build plugin'
run: ./gradlew --console plain --no-daemon --full-stacktrace check build
- name: 'Release plugin'
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
body: 'automated release at commit ${{ github.sha }}'
files: 'build/dist/*.jar'