Skip to content

Commit

Permalink
Fix CI for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Sep 6, 2024
1 parent eb453a5 commit 13b30f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: artifact-*
pattern: get-tested-*
merge-multiple: true
path: ./out

Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ jobs:
runs-on: ubuntu-latest
container: 'alpine:3.20'
needs: generate-matrix
outputs:
version: ${{ steps.version.output.version }}
steps:
- name: Install extra dependencies
shell: sh
Expand Down Expand Up @@ -163,6 +165,11 @@ jobs:
mkdir distribution
cp ${bin} distribution/get-tested
- id: version
run: |
version=$(./distribution/get-tested --version)
echo "version=${version}" >> "$GITHUB_OUTPUT"
- name: File type
run: file distribution/get-tested

Expand Down Expand Up @@ -221,13 +228,16 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: artifact-*
pattern: get-tested-*
merge-multiple: true
path: ./out

- name: Pre-release
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
draft: true
files: ./out/*
tag_name: get-tested-head
name: ${{ version }}
fail_on_unmatched_files: true
env:
version: ${{ needs.build.output.version }}

0 comments on commit 13b30f4

Please sign in to comment.