Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeoliphant committed Jul 1, 2024
2 parents f7f8f33 + cfdd3d0 commit f2ac6db
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
working-directory: ${{github.workspace}}
run: msbuild .\StompboxUI.sln /t:StompboxPlugin /p:Configuration=Release

- name: Create Plugin Archive
uses: actions/upload-artifact@v1
- name: Create Plugin Artifact
uses: actions/upload-artifact@v4
with:
name: StompboxVST3Plugin
path: ${{github.workspace}}\StompboxPlugin\bin\Release\net8.0-windows
Expand All @@ -44,8 +44,8 @@ jobs:
working-directory: ${{github.workspace}}
run: msbuild .\StompboxUI.sln /t:StompboxRemote /p:Configuration=Release

- name: Create Windows Remote Archive
uses: actions/upload-artifact@v1
- name: Create Windows Remote Artifact
uses: actions/upload-artifact@v4
with:
name: StompboxRemote
path: ${{github.workspace}}\StompboxRemote\bin\Release\net8.0-windows
Expand All @@ -57,4 +57,13 @@ jobs:
java-version: '17'

- name: run MSBuild for Android Remote
run: msbuild .\StompboxAndroid\StompboxAndroid.csproj /t:PackageForAndroid /p:Configuration=Debug
run: |
echo -n ${{ secrets.KEYSTORE }} | base64 --ignore-garbage --decode > ${{github.workspace}}\android.keystore
msbuild .\StompboxAndroid\StompboxAndroid.csproj /p:Configuration=RELEASE /p:AndroidKeyStore=true /p:AndroidSigningKeyAlias=stompboxkeystore /p:AndroidSigningKeyStore="${{github.workspace}}\android.keystore" /p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASS }}" /p:AndroidSigningStorePass="${{ secrets.KEYSTORE_PASS }}"
- name: Create Android Remote Artifact
uses: actions/upload-artifact@v4
with:
name: AndroidRemote
path: ${{github.workspace}}\StompboxAndroid\bin\Release\net8.0-android\StompboxAndroid.StompboxAndroid-Signed.apk

21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,24 @@ jobs:
asset_path: ./StompboxRemote.zip
asset_name: StompboxRemote.zip
asset_content_type: application/zip

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '17'

- name: run MSBuild for Android Remote
run: |
echo -n ${{ secrets.KEYSTORE }} | base64 --ignore-garbage --decode > ${{github.workspace}}\android.keystore
msbuild .\StompboxAndroid\StompboxAndroid.csproj /p:Configuration=RELEASE /p:AndroidKeyStore=true /p:AndroidSigningKeyAlias=stompboxkeystore /p:AndroidSigningKeyStore="${{github.workspace}}\android.keystore" /p:AndroidSigningKeyPass="${{ secrets.KEYSTORE_PASS }}" /p:AndroidSigningStorePass="${{ secrets.KEYSTORE_PASS }}"
- name: Upload Android Remote Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: ${{github.workspace}}\StompboxAndroid\bin\Release\net8.0-android\StompboxAndroid.StompboxAndroid-Signed.apk
asset_name: StompboxAndroid.StompboxAndroid-Signed.apk
asset_content_type: application/zip

0 comments on commit f2ac6db

Please sign in to comment.