diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 667f6b1..8a490d6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -76,8 +76,8 @@ - "3.11" - "3.12" - upload: - name: Upload Release Assets + release: + name: Release permissions: contents: write needs: @@ -89,28 +89,10 @@ - name: Download Artifacts uses: actions/download-artifact@v4 with: - path: artifacts - - name: Delete Existing Release - run: gh release --repo="${{ github.repository }}" delete dev --cleanup-tag - env: - GH_TOKEN: ${{ github.token }} - continue-on-error: true - - name: Upload Release Assets - run: gh release --repo="${{ github.repository }}" create dev artifacts/**/* --generate-notes --prerelease - env: - GH_TOKEN: ${{ github.token }} - - check: - name: Check - needs: - - build-pkg - - build-exe - - upload - if: always() - runs-on: ubuntu-latest - steps: - - name: Check - uses: re-actors/alls-green@release/v1 + merge-multiple: true + - name: Create GitHub Release + uses: liblaf/template/.github/actions/release@main with: - jobs: ${{ toJSON(needs) }} - allowed-skips: upload + tag: dev + files: "*" + prerelease: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1a80ef9..3e16664 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -141,8 +141,8 @@ - name: Download Artifacts uses: actions/download-artifact@v4 with: - path: artifacts + merge-multiple: true - name: Upload Release Assets - run: gh release --repo="${{ github.repository }}" upload "${{ needs.release.outputs.tag }}" artifacts/**/* --clobber + run: gh release --repo="${{ github.repository }}" upload "${{ needs.release.outputs.tag }}" * --clobber env: GH_TOKEN: ${{ github.token }}