Skip to content

Commit

Permalink
simplify release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Nov 19, 2024
1 parent be24c4f commit 76d3149
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 195 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ jobs:
needs: [build-binaries, build-windows-installer]
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: get release version
run: |
VERSION=$GITHUB_REF_NAME
VERSION_SHA=$GITHUB_SHA
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout code
uses: actions/checkout@v4
- name: Download binaries
Expand All @@ -211,18 +206,9 @@ jobs:
name: windows-installer
path: dist
- name: Generate checksum file
env:
VERSION: ${{ env.VERSION }}
run: sha256sum dist/* > "xk6-disruptor-${VERSION}-checksums.txt"
run: sha256sum dist/* > "xk6-disruptor-${{ github.REF_NAME }}-checksums.txt"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ env.VERSION }}
run: |
MESSAGE="$(cat ./releases/${VERSION}.md)"
assets=()
for asset in ./dist/*; do
assets+=("$asset")
done
gh release create "$VERSION" --target "$VERSION_SHA" -F "./releases/${VERSION}.md" "${assets[@]}"
gh release upload "${{ github.REF_NAME }}" ./dist/*
15 changes: 0 additions & 15 deletions releases/v0.1.0.md

This file was deleted.

10 changes: 0 additions & 10 deletions releases/v0.1.1.md

This file was deleted.

8 changes: 0 additions & 8 deletions releases/v0.1.3.md

This file was deleted.

7 changes: 0 additions & 7 deletions releases/v0.2.0.md

This file was deleted.

5 changes: 0 additions & 5 deletions releases/v0.2.1.md

This file was deleted.

12 changes: 0 additions & 12 deletions releases/v0.3.0.md

This file was deleted.

5 changes: 0 additions & 5 deletions releases/v0.3.1.md

This file was deleted.

11 changes: 0 additions & 11 deletions releases/v0.3.10.md

This file was deleted.

14 changes: 0 additions & 14 deletions releases/v0.3.11.md

This file was deleted.

14 changes: 0 additions & 14 deletions releases/v0.3.12.md

This file was deleted.

17 changes: 0 additions & 17 deletions releases/v0.3.2.md

This file was deleted.

8 changes: 0 additions & 8 deletions releases/v0.3.3.md

This file was deleted.

15 changes: 0 additions & 15 deletions releases/v0.3.4.md

This file was deleted.

5 changes: 0 additions & 5 deletions releases/v0.3.5.md

This file was deleted.

8 changes: 0 additions & 8 deletions releases/v0.3.6.md

This file was deleted.

6 changes: 0 additions & 6 deletions releases/v0.3.7.md

This file was deleted.

15 changes: 0 additions & 15 deletions releases/v0.3.8.md

This file was deleted.

4 changes: 0 additions & 4 deletions releases/v0.3.9.md

This file was deleted.

0 comments on commit 76d3149

Please sign in to comment.