forked from leroyguillaume/keycloak-bcrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.17 KB
/
release.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
on:
push:
tags:
- '*'
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: ./gradlew jar
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./build/libs/keycloak-bcrypt-${{ github.ref_name }}.jar
env:
GITHUB_TOKEN: ${{ secrets.DEPLOYMENT }}
# - name: Create release
# id: create_release
# uses: ncipollo/release-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN_OPEN_SOURCE }}
# with:
# artifacts: "build/libs/*.jars"
# - name: Upload jar
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN_OPEN_SOURCE }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./build/libs/keycloak-bcrypt-${{ github.ref_name }}.jar
# asset_name: keycloak-bcrypt-${{ github.ref_name }}.jar
# asset_content_type: application/java-archive