diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 8c4c17e..0d5abda 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -13,10 +13,23 @@ jobs: run: pip install -r requirements.txt - name: Build Package run: pyinstaller builder.py modules/*.py -n StaticGalleryBuilder -F --add-data files:files --add-data templates:templates --add-data .version:. - - name: Release - uses: softprops/action-gh-release@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - make_latest: true - generate_release_notes: true - files: | - dist/StaticGalleryBuilder \ No newline at end of file + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + 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: ./dist/StaticGalleryBuilder + asset_name: StaticGalleryBuilder + asset_content_type: application/x-executable