From c9b9efc9912bcbc40f1fe7da740fd2d318709495 Mon Sep 17 00:00:00 2001 From: Ircama Date: Mon, 29 Jul 2024 11:29:55 +0200 Subject: [PATCH] Fix release --- .github/workflows/build.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20dc7ce..a09f6b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ jobs: runs-on: windows-2019 steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Install Python uses: actions/setup-python@v1 with: @@ -23,31 +23,9 @@ jobs: - name: Run PyInstaller run: | python -m PyInstaller epson_print_conf.spec -- --default - - uses: actions/upload-artifact@v2 - with: - name: epson_print_conf - path: dist\epson_print_conf.exe - - name: create release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') with: - tag_name: ${{ github.event.head_commit.message }} - release_name: ${{ github.event.head_commit.message }} - overwrite: true - body: | - Release v2.1.0 - 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}} - asset_path: dist\epson_print_conf.exe - asset_name: epson_print_conf.exe - asset_content_type: application/zip + files: dist\epson_print_conf.exe