Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlee38 committed Sep 22, 2024
1 parent d098440 commit 995cb3f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,16 @@ jobs:
- name: Get Project Version
id: get_version
working-directory: ./gitnote-jetbrains
run: echo "GITNOTE_VERSION=$(./gradlew properties -q | awk '/^version:/ {print "v"$2}')" >> $GITHUB_ENV
run: echo "GITNOTE_VERSION=$(./gradlew properties -q | awk '/^version:/ {print $2}')" >> $GITHUB_ENV

- name: Upload
uses: actions/upload-artifact@v4
with:
name: gitnote-jetbrains-${{ env.GITNOTE_VERSION }}.zip
path: ./gitnote-jetbrains/build/distributions/gitnote-jetbrains-${{ env.GITNOTE_VERSION }}.zip
release:
permissions:
contents: write
runs-on: ubuntu-latest
needs: [ buildCargo, buildJar ]
# if: github.event_name == 'push' && github.ref == 'refs/heads/master'
Expand All @@ -95,7 +97,7 @@ jobs:
- name: Get Project Version
id: get_version
working-directory: ./gitnote-jetbrains
run: echo "GITNOTE_VERSION=$(./gradlew properties -q | awk '/^version:/ {print "v"$2}')" >> $GITHUB_ENV
run: echo "GITNOTE_VERSION=$(./gradlew properties -q | awk '/^version:/ {print $2}')" >> $GITHUB_ENV

- name: Download Artifacts
uses: actions/download-artifact@v4
Expand All @@ -107,7 +109,7 @@ jobs:

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
# if: startsWith(github.ref, 'refs/tags/')
with:
files: gitnote-jetbrains/build/distributions/gitnote-jetbrains-${{ env.GITNOTE_VERSION }}.zip

0 comments on commit 995cb3f

Please sign in to comment.