diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index ac6fa89d..8044fbe0 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -114,6 +114,7 @@ jobs: create-release: name: Create Release needs: [ windows, macos, linux-x86_64, linux-aarch64, android, ios, tvos, test-linux-x86_64 ] + if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Check Out Source @@ -163,4 +164,48 @@ jobs: artifact/melondsds_libretro-linux-aarch64-Release.zip artifact/melondsds_libretro-android-Release.zip artifact/melondsds_libretro-ios-Release.zip - artifact/melondsds_libretro-tvos-Release.zip \ No newline at end of file + artifact/melondsds_libretro-tvos-Release.zip + + - name: Checkout libretro-super + if: "${{ steps.changelog.outputs.version != steps.newest-tag.outputs.version }}" + uses: actions/checkout@v3 + with: + repository: "${{ github.triggering_actor }}/libretro-super" + path: libretro-super + + - run: ls -halR + - name: Sync libretro-super with Upstream + if: "${{ steps.changelog.outputs.version != steps.newest-tag.outputs.version }}" + working-directory: libretro-super + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + run: | + git remote add upstream https://github.com/libretro/libretro-super.git + git pull upstream master + git push origin master + + - name: Copy .info File + if: "${{ steps.changelog.outputs.version != steps.newest-tag.outputs.version }}" + run: cp -f "${{ github.workspace }}/artifact/melondsds_libretro-linux-x86_64-Release/cores/melondsds_libretro.info" libretro-super/dist/info + + - name: Commit and Push + if: "${{ steps.changelog.outputs.version != steps.newest-tag.outputs.version }}" + working-directory: libretro-super + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + run: | + git add dist/info/melondsds_libretro.info + git commit -m "Add melondsds_libretro.info for melonDS DS release ${{ steps.changelog.outputs.version }}" + git push origin master + + - name: Open Pull Request + if: "${{ steps.changelog.outputs.version != steps.newest-tag.outputs.version }}" + working-directory: libretro-super + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} + run: | + gh pr create \ + --title "Add melondsds_libretro.info for release ${{ github.event.release.tag_name }}" \ + --fill \ + --base master \ + --repo ${{ github.actor }}:libretro-super \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1012c507..3a13f787 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project roughly adheres to [Semantic Versioning](https://semver.org/spe Nothing right now. +## [0.7.11] - 2023-11-06 + +### Changed + +- Added an initial workflow for submitting releases to the libretro buildbot. + ## [0.7.10] - 2023-11-06 I'm still working out a workflow for releases,