Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmpr committed Dec 19, 2022
1 parent 2c99ac2 commit b79817e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
publish:
name: Publish artifacts
runs-on: ubuntu-latest

steps:
Expand All @@ -26,23 +27,26 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASS }}

release:
name: Create release
name: Create github release
needs: publish
runs-on: ubuntu-latest

steps:
- name: Read VERSION file
id: readversion
run: echo "::set-output name=version::$(cat trckr.version)"
- name: Checkout
uses: actions/checkout@v3

- name: Read version
run: |
version=$(cat trckr.version | tr -d '\n')
echo "version=$version" >> $GITHUB_ENV
- name: Create Release
id: create_release
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitish: ${{ github.ref }}
tag_name: v${{ steps.readversion.outputs.version }}
release_name: v${{ steps.readversion.outputs.version }}
tag_name: v${{ env.version }}
release_name: v${{ env.version }}
body: "Will be filled later."
draft: true

0 comments on commit b79817e

Please sign in to comment.