-
Notifications
You must be signed in to change notification settings - Fork 35
36 lines (32 loc) · 1.12 KB
/
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
34
35
36
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: Assembly
run: sbt "project secret-provider" assembly
env:
LENSES_TAG_NAME: ${{ steps.get_tag.outputs.VERSION }}
- name: Copy file
run: cp secret-provider/target/libs/secret-provider-assembly-${{ steps.get_tag.outputs.VERSION }}.jar secret-provider/target/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
- name: Release to Github
uses: softprops/action-gh-release@v1
with:
files: |
secret-provider/target/libs/secret-provider-${{ steps.get_tag.outputs.VERSION }}-all.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LENSES_TAG_NAME: ${{ steps.get_tag.outputs.VERSION }}