diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cd0062..b835b53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,21 +90,18 @@ jobs: path: fabric-windows-${{ matrix.arch }}.exe - name: Create release if it doesn't exist - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release view ${{ github.ref_name }} || gh release create ${{ github.ref_name }} --title "Release ${{ github.ref_name }}" --notes "Automated release for ${{ github.ref_name }}" - name: Upload release artifact - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && matrix.os == 'windows-latest' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release upload ${{ github.ref_name }} fabric-windows-${{ matrix.arch }}.exe - name: Upload release artifact - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && matrix.os != 'windows-latest' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |