Skip to content

Commit

Permalink
working on releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Nov 5, 2024
1 parent a50ce0c commit b7f70e8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ jobs:
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Build project
run: git archive -o /tmp/git-updater-${{ steps.tag.outputs.tag }}.zip --prefix=git-updater/ ${{ steps.tag.outputs.tag }}
run: git archive -o /tmp/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip --prefix=${{ github.event.repository.name }}/ ${{ steps.tag.outputs.tag }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.tag }}
release_name: ${{ steps.tag.outputs.tag }}
draft: false
prerelease: false
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip

- name: Upload Release Asset
id: upload-release-asset
Expand All @@ -38,6 +35,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/git-updater-${{ steps.tag.outputs.tag }}.zip
asset_name: git-updater-${{ steps.tag.outputs.tag }}.zip
asset_path: /tmp/${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip
asset_name: ${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.zip
asset_content_type: application/zip

0 comments on commit b7f70e8

Please sign in to comment.