Skip to content

Commit

Permalink
Update releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Core committed Dec 25, 2024
1 parent 21a26e0 commit 77f41cd
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: releases
name: releases

on:
workflow_dispatch:
Expand All @@ -14,7 +14,7 @@ env:
STORE_ID: '9P6PBVBF466L'

jobs:
windowsAndAndroid:
windows&&android:
runs-on: windows-latest
steps:
# Checkout the code
Expand Down Expand Up @@ -80,12 +80,13 @@ jobs:
run: ren Releases/*Signed.apk ${{ env.APP_NAME }}-${{ env.APPLICATION_DISPLAY_VERSION }}-android-arm64.apk

# Update to Github Releases
- uses: ncipollo/release-action@v1
- uses: svenstaro/upload-release-action@v2
with:
artifacts: 'Releases/${{ env.APP_NAME }}-${{ env.APPLICATION_DISPLAY_VERSION }}-android-arm64.apk'
token: ${{ github.token }}
name: ${{ env.APPLICATION_DISPLAY_VERSION }}
tag: 'v${{ env.APPLICATION_DISPLAY_VERSION }}'
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Releases/${{ env.APP_NAME }}-${{ env.APPLICATION_DISPLAY_VERSION }}-android-arm64.apk
file_glob: true
release_name: ${{ env.APPLICATION_DISPLAY_VERSION }}
tag: v${{ env.APPLICATION_DISPLAY_VERSION }}
prerelease: true

# Replace the version in Package.appxmanifest
Expand All @@ -109,14 +110,19 @@ jobs:
- name: Update to Microsoft Store
run: msstore publish ${{ env.CSPROJ_PATH }} -i ${{ env.CSPROJ_PATH }}/bin/Release/net${{ env.DOTNET_VERSION }}-windows10.0.19041.0/win10-x64/AppPackages -id ${{ env.STORE_ID }}

macOSAndiOS:
runs-on: macos-latest
macOS&&iOS:
runs-on: macos-15
steps:
# Checkout the code
- uses: actions/checkout@v3
with:
fetch-depth: 0

# Update Xcode
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest

# Install .NET SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
Expand Down Expand Up @@ -178,20 +184,26 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{env.CSPROJ_PATH}}/bin/Release/net${{ env.DOTNET_VERSION }}-maccatalyst/maccatalyst-arm64/publish/*.pkg
file_glob: true
release_name: ${{ env.APPLICATION_DISPLAY_VERSION }}
tag: v${{ env.APPLICATION_DISPLAY_VERSION }}
prerelease: true

- name: Update maccatalyst-x64 to Github Releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.CSPROJ_PATH }}/bin/Release/net${{ env.DOTNET_VERSION }}-maccatalyst/maccatalyst-x64/publish/*.pkg
file_glob: true
release_name: ${{ env.APPLICATION_DISPLAY_VERSION }}
tag: v${{ env.APPLICATION_DISPLAY_VERSION }}
prerelease: true

- name: Update ios-arm64 to Github Releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ env.CSPROJ_PATH }}/bin/Release/net${{ env.DOTNET_VERSION }}-ios/ios-arm64/publish/*.ipa
file_glob: true
release_name: ${{ env.APPLICATION_DISPLAY_VERSION }}
tag: v${{ env.APPLICATION_DISPLAY_VERSION }}
prerelease: true

0 comments on commit 77f41cd

Please sign in to comment.