Skip to content

Commit

Permalink
add release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Sep 9, 2024
1 parent 1e141ad commit 489b8b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,19 @@ jobs:
# echo "EOF" >> $GITHUB_ENV
# fi
- name: Create GitHub Release
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt-get install -y gh
gh release create "${{ env.PACKAGE_NAME }}-${{ env.VERSION }}" --title "${{ env.PACKAGE_NAME }} ${{ env.VERSION }}" --notes "Release for ${{ env.PACKAGE_NAME }} version ${{ env.VERSION }}${{ env.FULL_RELEASE_NOTES }} ${{ env.BREAKING_CHANGES }}" || true
- name: Check if 'cmd' directory exists and set environment variable
run: |

Check failure on line 132 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/release.yml#L132

shellcheck reported issue in this script: SC1046:error:1:1: Couldn't find 'fi' for this 'if' [shellcheck]
Raw output
.github/workflows/release.yml:132:9: shellcheck reported issue in this script: SC1046:error:1:1: Couldn't find 'fi' for this 'if' [shellcheck]

Check failure on line 132 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/release.yml#L132

shellcheck reported issue in this script: SC1073:error:1:1: Couldn't parse this if expression. Fix to allow more checks [shellcheck]
Raw output
.github/workflows/release.yml:132:9: shellcheck reported issue in this script: SC1073:error:1:1: Couldn't parse this if expression. Fix to allow more checks [shellcheck]

Check failure on line 132 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/release.yml#L132

shellcheck reported issue in this script: SC1047:error:6:1: Expected 'fi' matching previously mentioned 'if' [shellcheck]
Raw output
.github/workflows/release.yml:132:9: shellcheck reported issue in this script: SC1047:error:6:1: Expected 'fi' matching previously mentioned 'if' [shellcheck]

Check failure on line 132 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/release.yml#L132

shellcheck reported issue in this script: SC1072:error:6:1: Expected 'fi'. Fix any mentioned problems and try again [shellcheck]
Raw output
.github/workflows/release.yml:132:9: shellcheck reported issue in this script: SC1072:error:6:1: Expected 'fi'. Fix any mentioned problems and try again [shellcheck]
if [ -d "$GITHUB_WORKSPACE/${{ env.PACKAGE_NAME}}/cmd" ]; then
echo "CMD_EXISTS=true" >> $GITHUB_ENV
else
echo "CMD_EXISTS=false" >> $GITHUB_ENV
- uses: wangyoucao577/go-release-action@v1
if: always()
if: env.CMD_EXISTS == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: '1.22.6'
Expand Down

0 comments on commit 489b8b4

Please sign in to comment.