Skip to content

Commit

Permalink
Try creating release in github action with all files
Browse files Browse the repository at this point in the history
  • Loading branch information
alex1701c committed Oct 13, 2024
1 parent b8654a7 commit d7aa5dc
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,26 @@ jobs:
- uses: actions/download-artifact@v4
with:
path: binaries
- name: Collect files
id: collect-artifacts
shell: bash
run: |
files=$(find binaries -type f | paste -sd "," -)
echo "Comma-separated files: $files"
echo "uploaded_files=$files" >> "$GITHUB_OUTPUT"
- name: Create Tag
shell: bash
run: |
echo "${{ steps.collect-artifacts.uploaded_files }}"
git config --global user.name 'alex1701c'
git config --global user.email 'alex1701c@users.noreply.github.com'
git commit -am "New release ${{ inputs.publish-version }}"
git tag -a "${{ inputs.publish-version }}" -m "Release version ${{ inputs.publish-version }}"
git push
git push --tags
- run: find .
- run: exit 1
- uses: ncipollo/release-action@v1
with:
artifacts: "${{ steps.collect-artifacts.uploaded_files }}"
tag: ${{ inputs.publish-version }}
generateReleaseNotes: true

0 comments on commit d7aa5dc

Please sign in to comment.