Skip to content

Commit

Permalink
patch: use github context to get the tag
Browse files Browse the repository at this point in the history
  • Loading branch information
renatoaraujo committed Oct 9, 2023
1 parent e2dd2fc commit ff61cee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,22 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- run: git fetch --force --tags

- run: echo "version='${{ github.ref_name }}'" >> gradle.properties

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '21'

- run: echo "version='${{ env.GITHUB_REF_NAME }}'" >> gradle.properties

- name: Build Jar
run: ./gradlew shadowJar --no-daemon

- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.RELEASE_TOKEN }}"
automatic_release_tag: ${{ env.GITHUB_REF_NAME }}
automatic_release_tag: ${{ github.ref_name }}
prerelease: false
files: |
build/libs/uk-invitation-letter-${{ env.GITHUB_REF_NAME }}.jar
build/libs/uk-invitation-letter-${{ github.ref_name }}.jar

0 comments on commit ff61cee

Please sign in to comment.