-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.04 KB
/
tag-build.yml
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
35
36
37
38
39
40
name: Tag and publish
on:
push:
branches:
- '[0-9]+_[0-9]+_[0-9]+'
- '[0-9]+_[0-9]+_[0-9]+_[0-9]+'
env:
NEXUS_USERNAME: ${{ secrets.OSSRH_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEYID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
- name: Tag
run: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} bash .github/tag.sh
- name: Copy and Decode
run: |
mkdir $PWD/.kltrenv && echo "${{ secrets.SIGNING_KEY }}" > $PWD/.kltrenv/secring.gpg.b64
base64 -d $PWD/.kltrenv/secring.gpg.b64 > $PWD/.kltrenv/secring.gpg
- name: Build and Publish
run: |
bash .github/publish.sh
- name: Delete secring file
run: |
rm -rf $PWD/.kltrenv