forked from lensesio/secret-provider
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 1.15 KB
/
publish-manually.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
name: Publish-manually
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- shell: bash
env:
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
SIGNING_GPG_KEY: ${{ secrets.SIGNING_GPG_KEY }}
run: |
base64 -d <<< "$SIGNING_GPG_KEY" > /tmp/secring.gpg
echo "$GRADLE_PROPERTIES" > gradle.properties
- name: Get the tag
id: get_tag
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build shadowJar for Github
run: ./gradlew -Prelease -Pversion=${{ steps.get_tag.outputs.VERSION }} shadowJar createChecksums
- name: Release to Github
uses: softprops/action-gh-release@v1
with:
files: |
build/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
build/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}