From d6a757725132696f5761cc42df38d9eeba70fdc3 Mon Sep 17 00:00:00 2001 From: hahnec Date: Tue, 19 Mar 2024 00:41:45 +0100 Subject: [PATCH] fix(release): use alternative release upload --- .github/workflows/gh_actions.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/gh_actions.yml b/.github/workflows/gh_actions.yml index 6f4338f..c441771 100644 --- a/.github/workflows/gh_actions.yml +++ b/.github/workflows/gh_actions.yml @@ -188,25 +188,13 @@ jobs: pip install pyinstaller --upgrade plenopticam/scripts/bundling/py2exe.bat plenopticam/scripts/bundling/msi_auto-gen.bat - - name: Create tag in public repository - run: | - cd ${{github.workspace}}/plenopticam - git tag ${{ steps.get_tag.outputs.tag }} - git push --tags --porcelain - name: Create Release if: matrix.os == 'ubuntu-latest' id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ steps.get_tag.outputs.tag }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: true - - name: Upload Release - uses: alexellis/upload-assets@0.4.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: svenstaro/upload-release-action@v2 with: - asset_paths: '["./dist/*"]' \ No newline at end of file + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: dist/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true \ No newline at end of file