Skip to content

Commit

Permalink
Remove outdated action from release workflow
Browse files Browse the repository at this point in the history
Also match any Git tag starting with `v`, instead of just `v1.`.
  • Loading branch information
Marcono1234 committed Nov 5, 2023
1 parent f2d13da commit 4e01110
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- v1.*
- v*

permissions:
contents: write # to fetch code and create release
Expand All @@ -26,15 +26,19 @@ jobs:

- name: Get tag version
id: get_version
uses: battila7/get-version-action@v2
run: |
# Remove leading `v` from short ref name
version="${GITHUB_REF_NAME#v}"
echo "version=${version}" >> $GITHUB_OUTPUT
echo "Version: ${version}"
- name: Create release artifacts
run: ./gradlew jar sourcesJar jarWithDependencies dokkaJavadocJar dokkaHtmlJar

- name: Create release and upload artifacts
uses: softprops/action-gh-release@v1
with:
name: Tiny Lingua ${{ steps.get_version.outputs.version-without-v }}
name: Tiny Lingua ${{ steps.get_version.outputs.version }}
files: build/libs/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4e01110

Please sign in to comment.