Skip to content

Commit

Permalink
actually upload the cleaned zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
agl-alexglopez committed Jul 10, 2024
1 parent 968494b commit 507721b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
git commit -m "Remove unnecessary files for release ${GITHUB_REF#refs/tags/}"
git push origin release-${GITHUB_REF#refs/tags/}
- name: Create Release Zip
run: |
git archive --format=zip --output=str_view-${GITHUB_REF#refs/tags/}.zip release-${GITHUB_REF#refs/tags/}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -40,6 +44,17 @@ jobs:
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./str_view-${GITHUB_REF#refs/tags/}.zip
asset_name: str_view-${GITHUB_REF#refs/tags/}.zip
asset_content_type: application/zip

- name: Delete Tag Branch
run: |
git push --delete origin release-${GITHUB_REF#refs/tags/}

0 comments on commit 507721b

Please sign in to comment.