forked from lensesio/secret-provider
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 928 Bytes
/
publish.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
name: Publish
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Scala
uses: olafurpg/setup-scala@v11
with:
java-version: [email protected]
- 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 }}