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 11b7998
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,27 @@ 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"
cat "$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 '[email protected]'
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 11b7998

Please sign in to comment.