Skip to content

Commit

Permalink
Use XBUILD_SECRET in CI (#14)
Browse files Browse the repository at this point in the history
Needed so that CI can use the GitHub CLI to upload tags to the repository.
  • Loading branch information
maxded authored Oct 24, 2024
1 parent 94e80bd commit 710da78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: mv bin/x xbuild-linux-x64
- run: gh release upload $TAG xbuild-linux-x64 -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}

macos:
Expand All @@ -31,7 +31,7 @@ jobs:
- run: mv bin/x xbuild-macos-x64
- run: gh release upload $TAG xbuild-macos-x64 -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}

windows:
Expand All @@ -43,5 +43,5 @@ jobs:
- run: mv bin/x.exe xbuild-windows-x64.exe
- run: gh release upload $TAG xbuild-windows-x64.exe -R rust-mobile/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}
8 changes: 4 additions & 4 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: tar --zstd -cf Android.ndk.tar.zst Android.ndk
- run: gh release upload $TAG Android.ndk.tar.zst -R Traverse-Research/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}

macos:
Expand All @@ -47,7 +47,7 @@ jobs:
- run: gtar --zstd -cf MacOSX.sdk.tar.zst MacOSX.sdk
- run: gh release upload $TAG MacOSX.sdk.tar.zst -R Traverse-Research/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}

ios:
Expand All @@ -60,7 +60,7 @@ jobs:
- run: gtar --zstd -cf iPhoneOS.sdk.tar.zst iPhoneOS.sdk
- run: gh release upload $TAG iPhoneOS.sdk.tar.zst -R Traverse-Research/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}

windows:
Expand All @@ -73,5 +73,5 @@ jobs:
- run: tar --zstd -cf Windows.sdk.tar.zst Windows.sdk
- run: gh release upload $TAG Windows.sdk.tar.zst -R Traverse-Research/xbuild
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.XBUILD_SECRET }}
TAG: ${{ github.event.release.tag_name }}

0 comments on commit 710da78

Please sign in to comment.