Skip to content

Commit

Permalink
First crack at automating submission to libretro-super
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Nov 6, 2023
1 parent ac760c0 commit 6822ee9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
47 changes: 46 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6822ee9

Please sign in to comment.