Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Morpheus committed Jan 12, 2025
1 parent b750b55 commit 266d762
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions .github/workflows/roothide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,46 @@ jobs:
plutil -insert items.$DOCreditsCellIndex.names -xml "<dict><key>name</key><string>${{ github.actor }}</string><key>link</key><string>https://github.com/${{ github.repository }}</string></dict>" -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
${{ github.workspace }}/Application/Dopamine2-roothide.tipa
- name: Delete old release
uses: dev-drprasad/[email protected]
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

0 comments on commit 266d762

Please sign in to comment.