Skip to content

Commit

Permalink
Update release-master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brlumen authored Jan 10, 2025
1 parent bff3d0c commit f9ed2b2
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
# 4. Creating an archive
- name: Create Release Archive
run: |
zip -r release.zip ./Calendar -x ".git*" "tests/*" ".github/*"
zip -r Calendar-${{ github.event.release.tag_name }}.zip ./Calendar -x ".git*" "tests/*" ".github/*"
# 5. Uploading the archive to the release
- name: Upload to Release
Expand All @@ -39,6 +39,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./release.zip
asset_name: release.zip
asset_path: ./Calendar-${{ github.event.release.tag_name }}.zip
asset_name: Calendar-${{ github.event.release.tag_name }}.zip
asset_content_type: application/zip

# 6. Moving the release from preliminary to final
- name: Finalize Release
run: |
curl -X PATCH \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/${{ github.repository }}/releases/${{ github.event.release.id }} \
-d '{"prerelease": false}'

0 comments on commit f9ed2b2

Please sign in to comment.