Skip to content

Commit

Permalink
Realese only of had new commits on original repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rashevskyv authored Sep 10, 2024
1 parent 0024c73 commit e4fb8bc
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,34 @@ jobs:
git fetch upstream
git checkout master
git merge upstream/master --allow-unrelated-histories
git push origin master
- name: Check for changes
id: check_changes
run: |
if [ -n "$(git log HEAD..upstream/master --oneline)" ]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
fi
- name: Push changes if any
if: steps.check_changes.outputs.changes == 'true'
run: git push origin master

- name: Copy required files
if: steps.check_changes.outputs.changes == 'true'
run: |
mkdir -p apps/Nintendont/
cp loader/loader.dol apps/Nintendont/
cp nintendont/meta.xml apps/Nintendont/
cp nintendont/icon.png apps/Nintendont/
- name: Archive folder into nintendont.zip
if: steps.check_changes.outputs.changes == 'true'
run: zip -r nintendont.zip apps/

- name: Create Release
if: steps.check_changes.outputs.changes == 'true'
uses: softprops/action-gh-release@v1
with:
files: nintendont.zip
Expand Down

0 comments on commit e4fb8bc

Please sign in to comment.