Skip to content

Commit

Permalink
Simplify the release workflow a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseTG committed Nov 6, 2023
1 parent f103c33 commit 5ab1786
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
35 changes: 13 additions & 22 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,29 +173,20 @@ jobs:
repository: "${{ github.triggering_actor }}/libretro-super"
path: libretro-super

- name: Sync libretro-super with Upstream
- name: Commit .info File
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
uses: dmnemec/[email protected]
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
API_TOKEN_GITHUB: ${{ secrets.RELEASE_TOKEN }}
with:
source_file: "${{ github.workspace }}/artifact/melondsds_libretro-linux-x86_64-Release/cores/melondsds_libretro.info"
destination_branch_create: "release-v${{ steps.changelog.outputs.version }}"
destination_branch: "release-v${{ steps.changelog.outputs.version }}"
destination_repo: '${{ github.triggering_actor }}/libretro-super'
destination_folder: 'dist/info'
user_email: 'github-actions[bot]@users.noreply.github.com'
user_name: 'github-actions[bot]'
commit_message: 'Submit melondsds_libretro.info for melonDS DS release v${{ steps.changelog.outputs.version }}'

- name: Open Pull Request
if: "${{ steps.changelog.outputs.version != steps.newest-tag.outputs.version }}"
Expand All @@ -204,7 +195,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
run: |
gh pr create \
--title "Add melondsds_libretro.info for release ${{ github.event.release.tag_name }}" \
--title "Add melondsds_libretro.info for release v${{ steps.changelog.outputs.version }}" \
--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.13] - 2023-11-06

### Changed

- Simplify the workflow for submitting releases to the libretro buildbot.

## [0.7.12] - 2023-11-06

### Changed
Expand Down

0 comments on commit 5ab1786

Please sign in to comment.