Skip to content

Commit 1cf1d48

Browse files
authored
Update kotlinBuildRelease.yml
1 parent 423601d commit 1cf1d48

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/kotlinBuildRelease.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,23 @@ jobs:
2525
RELEASE_VERSION: ${{github.run_number}}
2626

2727

28-
create-release:
28+
update-release:
2929
runs-on: ubuntu-latest
3030
permissions:
3131
contents: write
3232
needs: build-gradle-project
3333
steps:
34-
- name: Update release
35-
uses: johnwbyrd/update-release@v1.0.0
36-
with:
37-
token: ${{ secrets.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 }}
38-
asset: ./build/libs/DiscordBot.jar
34+
- name: Set enviroment for github-release
35+
run: |
36+
echo ::set-env name=RELEASE_TAG::"latest"
37+
echo ::set-env name=RELEASE_NAME::"$GITHUB_WORKFLOW"
38+
- uses: actions/checkout@v2
39+
40+
- uses: meeDamian/github-release@2.0
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
tag: ${{ env.RELEASE_TAG }}
44+
name: ${{ env.RELEASE_NAME }}
45+
files: ./build/libs/DiscordBot.jar
46+
3947

0 commit comments

Comments
 (0)