diff --git a/.github/workflows/publish-android.yaml b/.github/workflows/publish-android.yaml index bca9a77..a41b124 100644 --- a/.github/workflows/publish-android.yaml +++ b/.github/workflows/publish-android.yaml @@ -1,7 +1,7 @@ name: Publish Android on: release: - types: [ created ] + types: [ published ] jobs: publish-package: runs-on: [ "macos-14" ] diff --git a/.github/workflows/publish-ios.yaml b/.github/workflows/publish-ios.yaml index ca8c2d5..f943f25 100644 --- a/.github/workflows/publish-ios.yaml +++ b/.github/workflows/publish-ios.yaml @@ -1,7 +1,7 @@ name: Publish iOS on: release: - types: [ created ] + types: [ published ] permissions: contents: write jobs: diff --git a/.github/workflows/pull-master-release.yaml b/.github/workflows/pull-master-release.yaml index c4eff79..6623f9a 100644 --- a/.github/workflows/pull-master-release.yaml +++ b/.github/workflows/pull-master-release.yaml @@ -75,17 +75,10 @@ jobs: - name: Package kos-js run: zip -r ./demo/kos-js.zip ./demo/kos || { echo 'Packaging failed'; exit 1; } - - name: Capture Release Notes - id: release_notes - run: | - LATEST_TAG=$(git describe --tags --abbrev=0) - RELEASE_NOTES=$(git log --oneline $LATEST_TAG..HEAD) - echo "::set-output name=notes::$RELEASE_NOTES" - - name: Create GitHub Release run: | VERSION=$(cat VERSION) - gh release create "v$VERSION" ./demo/kos-js.zip --title "Release v$VERSION" --notes "${{ steps.release_notes.outputs.notes }}" || { echo 'Release creation failed'; exit 1; } + gh release create "v$VERSION" ./demo/kos-js.zip --title "Release v$VERSION" --generate-notes --target master || { echo 'Release creation failed'; exit 1; } env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}