From 266d76246b6861837823fb82ddf8ffdae0a8671b Mon Sep 17 00:00:00 2001 From: Morpheus Date: Sun, 12 Jan 2025 17:40:34 +0700 Subject: [PATCH] update --- .github/workflows/roothide.yml | 39 +++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/.github/workflows/roothide.yml b/.github/workflows/roothide.yml index c3227292a..ded43b857 100644 --- a/.github/workflows/roothide.yml +++ b/.github/workflows/roothide.yml @@ -80,13 +80,46 @@ jobs: plutil -insert items.$DOCreditsCellIndex.names -xml "name${{ github.actor }}linkhttps://github.com/${{ github.repository }}" -append ./Application/Dopamine/UI/Settings/Credits.plist gmake -j$(sysctl -n hw.physicalcpu) TAG=$(git describe --tags --abbrev=0) - mv ./Application/Dopamine.tipa "./Application/roothide-Dopamine2-v${TAG}.tipa" + mv ./Application/Dopamine.tipa "./Application/Dopamine2-roothide.tipa" echo "tag=${TAG}" >> $GITHUB_ENV - name: Upload Artifact id: dopamine-latest-upload uses: actions/upload-artifact@v4 with: - name: roothide-Dopamine2-v${{ env.tag }}.tipa + name: Dopamine2-roothide.tipa path: | - ${{ github.workspace }}/Application/roothide-Dopamine2-v${{ env.tag }}.tipa \ No newline at end of file + ${{ github.workspace }}/Application/Dopamine2-roothide.tipa + + - name: Delete old release + uses: dev-drprasad/delete-tag-and-release@v0.2.1 + with: + delete_release: true + tag_name: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: roothide + release_name: Roothide2 Beta Release + body: These are automatically updated builds of the latest commit. + draft: false + prerelease: false + overwrite: true + files: ${{ github.workspace }}/Application/Dopamine2-roothide.tipa + + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ github.workspace }}/Application/Dopamine2-roothide.tipa + asset_name: Dopamine2-roothide.tipa + asset_content_type: application/octet-stream \ No newline at end of file