AppIconを緑ベースに変更した #146
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Delivery Action | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+-.[0-9]+' | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
workflow_dispatch: | |
concurrency: | |
cd-action-${{ github.ref }} | |
env: | |
CSPROJ_PATH: ./TRViS/TRViS.csproj | |
THIRD_PARTY_LICENSE_INFO_DIR: ./TRViS/Resources/Raw/licenses | |
THIRD_PARTY_LICENSE_LIST_NAME: license_list | |
TARGET_FRAMEWORK: net8.0-ios | |
TARGET_RUNTIME: ios-arm64 | |
TARGET_FRAMEWORK_MAC: net8.0-maccatalyst | |
TARGET_RUNTIME_MAC: osx | |
TARGET_FRAMEWORK_ANDROID: net8.0-android | |
OUTPUT_DIR: ./out | |
IPA_PATH: ./out/TRViS.ipa | |
PKG_PATH: ./out/TRViS.pkg | |
AAB_PATH: ./out/dev.t0r.trvis-Signed.aab | |
APK_PATH: ./out/dev.t0r.trvis-Signed.apk | |
SDK_VERSION: '8.0.100-preview.4.23260.5' | |
jobs: | |
generate-bundle-version: | |
if: | | |
!startsWith(github.ref, 'refs/tags/v') | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
&& !cancelled() | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
outputs: | |
display_version: ${{ steps.set_display_version.outputs.disp-version }} | |
build_number: ${{ steps.build_number.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{github.head_ref}} | |
- name: Get all tags from remote | |
run: git fetch --all --tags | |
- name: generate bundle version pattern (Trigger:Push to main) | |
if: ${{ github.event_name == 'push' }} | |
run: grep -oP '(?<=<ApplicationDisplayVersion>).*?(?=</ApplicationDisplayVersion>)' ${{ env.CSPROJ_PATH }} > DISP_VERSION | |
- name: generate bundle version pattern (Trigger:PullRequest) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: echo "0.0.${{ github.event.number }}" > DISP_VERSION | |
- name: generate bundle version pattern (Trigger:WorkflowDispatch) | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
run: echo "0.0.0" > DISP_VERSION | |
- name: set display version to variable | |
id: set_display_version | |
run: | | |
echo "disp-version=$(cat DISP_VERSION)" >> $GITHUB_OUTPUT | |
- name: Get all tags reachable from current commit | |
run: | | |
git tag -l "v${{ steps.set_display_version.outputs.disp-version }}-[0-9]*" > VERSION_TAGS | |
cat VERSION_TAGS | |
- name: Generate new patch build number | |
id: build_number | |
run: | | |
if [ `cat VERSION_TAGS | wc -l` -eq 0 ]; then | |
BUILD_NUMBER=1 | |
else | |
BUILD_NUMBER=`sort -rV VERSION_TAGS | head -n 1 | awk -F '-' '{print $2 + 1}'` | |
fi | |
echo "version=$BUILD_NUMBER" >> $GITHUB_OUTPUT | |
- name: print new version number | |
run: echo "VersionNumber ... ${{ steps.set_display_version.outputs.disp-version }}-${{ steps.build_number.outputs.version }}" | |
get-version: | |
if: | | |
!failure() | |
&& !cancelled() | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
needs: | |
- generate-bundle-version | |
outputs: | |
display_version: ${{ steps.get-version.outputs.display_version }} | |
build_number: ${{ steps.get-version.outputs.build_number }} | |
steps: | |
- name: get version | |
id: get-version | |
run: | | |
if [ '${{ startsWith(github.ref, 'refs/tags/v') }}' == 'true' ]; then | |
VERSION=`echo '${{ github.ref }}' | tr -d 'refs/tags/v'` | |
echo "display_version=$(echo $VERSION | awk -F '-' '{print $1}')" >> $GITHUB_OUTPUT | |
echo "build_number=$(echo $VERSION | awk -F '-' '{print $2}')" >> $GITHUB_OUTPUT | |
else | |
echo "display_version=${{ needs.generate-bundle-version.outputs.display_version }}" >> $GITHUB_OUTPUT | |
echo "build_number=${{ needs.generate-bundle-version.outputs.build_number }}" >> $GITHUB_OUTPUT | |
fi | |
build-ios: | |
if: | | |
!failure() | |
&& !cancelled() | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
runs-on: macos-12 | |
timeout-minutes: 30 | |
needs: | |
- get-version | |
env: | |
WITHOUT_ANDROID: true | |
steps: | |
- name: Import Provisioning Profile | |
run: | | |
mkdir -p ${{ env.TARGET_DIR }} | |
if [ ! -f ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} ]; then | |
echo -n ${{ secrets.PROVISIONING_PROFILE }} | base64 -d > ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
ls -l ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
fi | |
env: | |
TARGET_DIR: ~/Library/MobileDevice/Provisioning\ Profiles | |
TARGET_FILE: distribution.mobileprovision | |
- name: Generate Keychain Name | |
id: gen-keychain-name | |
run: echo "keychain-name=${{ github.run_id }}_${{ github.run_attempt }}" >> $GITHUB_OUTPUT | |
# ref: https://github.com/Apple-Actions/import-codesign-certs/pull/27#issuecomment-1298231619 | |
- name: Build keychain | |
run: | | |
echo "${{ secrets.P12_FILE_BASE64 }}" | base64 --decode > certificate.p12 | |
security create-keychain -p "${{ secrets.P12_PASSWORD }}" "${{ env.KEYCHAIN_NAME }}" | |
security default-keychain -s "${{ env.KEYCHAIN_NAME }}" | |
security unlock-keychain -p "${{ secrets.P12_PASSWORD }}" "${{ env.KEYCHAIN_NAME }}" | |
security set-keychain-settings -lut 21600 "${{ env.KEYCHAIN_NAME }}" | |
security import certificate.p12 -k "${{ env.KEYCHAIN_NAME }}" -P "${{ secrets.P12_PASSWORD }}" -T /usr/bin/codesign -T /usr/bin/productsign -T /usr/bin/xcrun | |
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.P12_PASSWORD }}" "${{ env.KEYCHAIN_NAME }}" | |
env: | |
KEYCHAIN_NAME: ${{ steps.gen-keychain-name.outputs.keychain-name }}.keychain | |
- uses: actions/checkout@v4 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: latest-stable | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.SDK_VERSION }} | |
- name: Install dotnet workloads | |
run: dotnet workload install maui-ios maccatalyst | |
- name: Install dependencies | |
run: dotnet restore ${{ env.CSPROJ_PATH }} -r ${{ env.TARGET_RUNTIME }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Prapare Python Package | |
run: | | |
python --version | |
python -m pip install aiofiles aiohttp | |
- name: Dump Third Party License Info | |
id: dump-third-party-license-info | |
continue-on-error: true | |
run: | | |
python ./tools/getThirdPartyLicenseJson.py ios ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
ls -l ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
- name: Dump Third Party License Info (Retry) | |
if: steps.dump-third-party-license-info.outcome == 'failure' | |
run: | | |
python ./tools/getThirdPartyLicenseJson.py ios ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
ls -l ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
- name: Print Third Party License Info Files | |
run: cat ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }}/${{ env.THIRD_PARTY_LICENSE_LIST_NAME }}.json | |
- name: Build | |
run: > | |
dotnet publish ${{ env.CSPROJ_PATH }} | |
-f ${{ env.TARGET_FRAMEWORK }} | |
-r ${{ env.TARGET_RUNTIME }} | |
-c Release | |
-o "${{ env.OUTPUT_DIR }}" | |
/p:ApplicationDisplayVersion=${{ needs.get-version.outputs.display_version }} | |
/p:ApplicationVersion=${{ needs.get-version.outputs.build_number }} | |
/p:CodesignKey="${{ secrets.CODESIGN_KEY_NAME_IOS }}" | |
/p:CodesignProvision="${{ secrets.CODESIGN_PROVISION_NAME_IOS }}" | |
- name: Upload IPA | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ipa | |
path: ${{ env.IPA_PATH }} | |
retention-days: 3 | |
- name: Post 'Import Code Sign Certificates' | |
if: always() && steps.import-code-sign-cert.conclusion == 'success' | |
run: /usr/bin/security delete-keychain ${{ steps.gen-keychain-name.outputs.keychain-name }}.keychain | |
build-android: | |
if: | | |
!failure() | |
&& !cancelled() | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
needs: | |
- get-version | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.SDK_VERSION }} | |
- name: Install dotnet workloads | |
run: dotnet workload install maui-android | |
- name: Install dependencies | |
run: dotnet restore ${{ env.CSPROJ_PATH }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Prapare Python Package | |
run: | | |
python --version | |
python -m pip install aiofiles aiohttp | |
- name: Dump Third Party License Info | |
id: dump-third-party-license-info | |
continue-on-error: true | |
run: | | |
python ./tools/getThirdPartyLicenseJson.py android ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
ls -l ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
- name: Dump Third Party License Info (Retry) | |
if: steps.dump-third-party-license-info.outcome == 'failure' | |
run: | | |
python ./tools/getThirdPartyLicenseJson.py android ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
ls -l ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
- name: Print Third Party License Info Files | |
run: cat ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }}/${{ env.THIRD_PARTY_LICENSE_LIST_NAME }}.json | |
- name: Build | |
run: > | |
dotnet publish ${{ env.CSPROJ_PATH }} | |
-f ${{ env.TARGET_FRAMEWORK_ANDROID }} | |
-c Release | |
-o "${{ env.OUTPUT_DIR }}" | |
/p:ApplicationDisplayVersion=${{ needs.get-version.outputs.display_version }} | |
/p:ApplicationVersion=${{ needs.get-version.outputs.build_number }} | |
- name: Upload AAB | |
uses: actions/upload-artifact@v3 | |
with: | |
name: aab | |
path: ${{ env.AAB_PATH }} | |
retention-days: 3 | |
- name: Upload APK | |
uses: actions/upload-artifact@v3 | |
with: | |
name: apk | |
path: ${{ env.APK_PATH }} | |
retention-days: 3 | |
build-mac: | |
if: | | |
!failure() | |
&& !cancelled() | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
runs-on: macos-12 | |
timeout-minutes: 30 | |
needs: | |
- get-version | |
env: | |
WITHOUT_ANDROID: true | |
steps: | |
- name: Import Provisioning Profile | |
run: | | |
mkdir -p ${{ env.TARGET_DIR }} | |
if [ ! -f ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} ]; then | |
echo -n ${{ secrets.PROVISIONING_PROFILE_MAC }} | base64 -d > ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
ls -l ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
fi | |
env: | |
TARGET_DIR: ~/Library/MobileDevice/Provisioning\ Profiles | |
TARGET_FILE: distribution.provisionprofile | |
- name: Generate Keychain Name | |
id: gen-keychain-name | |
run: echo "keychain-name=${{ github.run_id }}_${{ github.run_attempt }}" >> $GITHUB_OUTPUT | |
# ref: https://github.com/Apple-Actions/import-codesign-certs/pull/27#issuecomment-1298231619 | |
- name: Build keychain | |
run: | | |
echo "${{ secrets.P12_FILE_MAC_BASE64 }}" | base64 --decode > certificate.p12 | |
security create-keychain -p '${{ secrets.P12_PASSWORD_MAC }}' "${{ env.KEYCHAIN_NAME }}" | |
security default-keychain -d user -s "${{ env.KEYCHAIN_NAME }}" | |
security unlock-keychain -p '${{ secrets.P12_PASSWORD_MAC }}' "${{ env.KEYCHAIN_NAME }}" | |
security set-keychain-settings -lut 21600 "${{ env.KEYCHAIN_NAME }}" | |
security import certificate.p12 -k "${{ env.KEYCHAIN_NAME }}" -P '${{ secrets.P12_PASSWORD_MAC }}' -T /usr/bin/codesign -T /usr/bin/productbuild -T /usr/bin/xcrun | |
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k '${{ secrets.P12_PASSWORD_MAC }}' "${{ env.KEYCHAIN_NAME }}" | |
env: | |
KEYCHAIN_NAME: ${{ steps.gen-keychain-name.outputs.keychain-name }}.keychain | |
- uses: actions/checkout@v4 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: '14.2' | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.SDK_VERSION }} | |
- name: Install dotnet workloads | |
run: dotnet workload install maui-ios maccatalyst | |
- name: Install dependencies | |
run: dotnet restore ${{ env.CSPROJ_PATH }} -r ${{ env.TARGET_RUNTIME_MAC }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Prapare Python Package | |
run: | | |
python --version | |
python -m pip install aiofiles aiohttp | |
- name: Dump Third Party License Info | |
id: dump-third-party-license-info | |
continue-on-error: true | |
run: | | |
python ./tools/getThirdPartyLicenseJson.py maccatalyst ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
ls -l ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
- name: Dump Third Party License Info (Retry) | |
if: steps.dump-third-party-license-info.outcome == 'failure' | |
run: | | |
python ./tools/getThirdPartyLicenseJson.py maccatalyst ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
ls -l ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }} | |
- name: Print Third Party License Info Files | |
run: cat ${{ env.THIRD_PARTY_LICENSE_INFO_DIR }}/${{ env.THIRD_PARTY_LICENSE_LIST_NAME }}.json | |
- name: Build | |
run: > | |
dotnet publish ${{ env.CSPROJ_PATH }} | |
-f ${{ env.TARGET_FRAMEWORK_MAC }} | |
-c Release | |
-o "${{ env.OUTPUT_DIR }}" | |
/p:ApplicationDisplayVersion=${{ needs.get-version.outputs.display_version }} | |
/p:ApplicationVersion=${{ needs.get-version.outputs.build_number }} | |
/p:CodesignKey="${{ secrets.CODESIGN_KEY_NAME_MAC }}" | |
/p:CodesignProvision="${{ secrets.CODESIGN_PROVISION_NAME_MAC }}" | |
/p:EnablePackageSigning=true | |
/p:PackageSigningKey='${{ secrets.PACKAGE_SIGN_KEY_NAME_MAC }}' | |
/p:CodesignEntitlements='Platforms/MacCatalyst/Entitlements.plist' | |
- name: Change pkg file name | |
run: > | |
mv | |
${{ env.OUTPUT_DIR }}/TRViS-${{ needs.get-version.outputs.display_version }}.pkg | |
${{ env.PKG_PATH }} | |
- name: Upload PKG | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pkg | |
path: ${{ env.PKG_PATH }} | |
retention-days: 3 | |
- name: Post 'Import Code Sign Certificates' | |
if: always() && steps.import-code-sign-cert.conclusion == 'success' | |
run: /usr/bin/security delete-keychain ${{ steps.gen-keychain-name.outputs.keychain-name }}.keychain | |
publish-ios: | |
if: | | |
!failure() | |
&& !cancelled() | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
runs-on: macos-13 | |
timeout-minutes: 10 | |
needs: | |
- build-ios | |
steps: | |
- name: Import App Store Connect API Private Key | |
run: | | |
mkdir -p ${{ env.TARGET_DIR }} | |
if [ ! -f ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} ]; then | |
echo -n ${{ secrets.APPSTORECONNECT_API_PRIVATE_KEY }} | base64 -d > ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
chmod 400 ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
ls -l ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
fi | |
env: | |
TARGET_DIR: ~/.appstoreconnect/private_keys | |
TARGET_FILE: AuthKey_${{ secrets.APPSTORECONNECT_API_KEY }}.p8 | |
- name: Download IPA | |
uses: actions/download-artifact@v3 | |
with: | |
name: ipa | |
path: ${{ env.OUTPUT_DIR }} | |
- name: validate | |
run: > | |
xcrun altool | |
--validate-app | |
--type ios | |
-f ${{ env.IPA_PATH }} | |
--apiKey ${{ secrets.APPSTORECONNECT_API_KEY }} | |
--apiIssuer ${{ secrets.APPSTORECONNECT_ISSUER_ID }} | |
- name: upload | |
run: > | |
xcrun altool | |
--upload-app | |
--type ios | |
-f ${{ env.IPA_PATH }} | |
--apiKey ${{ secrets.APPSTORECONNECT_API_KEY }} | |
--apiIssuer ${{ secrets.APPSTORECONNECT_ISSUER_ID }} | |
publish-mac: | |
if: | | |
!failure() | |
&& !cancelled() | |
&& ( | |
github.event_name != 'pull_request' | |
|| github.event.pull_request.draft == false | |
) | |
runs-on: macos-13 | |
timeout-minutes: 30 | |
needs: | |
- build-mac | |
steps: | |
- name: Import App Store Connect API Private Key | |
run: | | |
mkdir -p ${{ env.TARGET_DIR }} | |
if [ ! -f ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} ]; then | |
echo -n ${{ secrets.APPSTORECONNECT_API_PRIVATE_KEY }} | base64 -d > ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
chmod 400 ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
ls -l ${{ env.TARGET_DIR }}/${{ env.TARGET_FILE }} | |
fi | |
env: | |
TARGET_DIR: ~/.appstoreconnect/private_keys | |
TARGET_FILE: AuthKey_${{ secrets.APPSTORECONNECT_API_KEY }}.p8 | |
- name: Download PKG | |
uses: actions/download-artifact@v3 | |
with: | |
name: pkg | |
path: ${{ env.OUTPUT_DIR }} | |
- name: validate | |
run: > | |
xcrun altool | |
--validate-app | |
--type mac | |
-f ${{ env.PKG_PATH }} | |
--apiKey ${{ secrets.APPSTORECONNECT_API_KEY }} | |
--apiIssuer ${{ secrets.APPSTORECONNECT_ISSUER_ID }} | |
- name: upload | |
run: > | |
xcrun altool | |
--upload-app | |
--type mac | |
-f ${{ env.PKG_PATH }} | |
--apiKey ${{ secrets.APPSTORECONNECT_API_KEY }} | |
--apiIssuer ${{ secrets.APPSTORECONNECT_ISSUER_ID }} | |
set-tag: | |
if: | | |
needs.generate-bundle-version.result == 'success' | |
&& ( | |
needs.publish-ios.result == 'success' | |
|| needs.publish-mac.result == 'success' | |
) | |
&& !failure() | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
needs: | |
- generate-bundle-version | |
- publish-ios | |
- publish-mac | |
outputs: | |
tag-name: ${{ steps.tag-name.outputs.tag-name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: fetch all history to assign tag | |
if: ${{ github.event_name == 'pull_request' }} | |
run: git fetch --unshallow --no-tags --no-recurse-submodules origin +${{ github.sha }}:${{ github.ref }} | |
- name: Setup github-actions[bot] account | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: set PR number | |
id: pr-num | |
if: ${{ github.event_name == 'pull_request' }} | |
run: echo "str=#${{ github.event.number }}" >> $GITHUB_OUTPUT | |
- name: generate tag name | |
id: tag-name | |
run: echo "tag-name=v${{ needs.generate-bundle-version.outputs.display_version }}-${{ needs.generate-bundle-version.outputs.build_number }}" >> $GITHUB_OUTPUT | |
- name: tagging new tag | |
run: git tag -a ${{ steps.tag-name.outputs.tag-name }} -m "Auto Generated tag ${{ steps.pr-num.outputs.str }} ( https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} )" | |
- name: push new tag | |
run: git push origin ${{ steps.tag-name.outputs.tag-name }} | |
- name: Comment TagName and Actions-Run URL to PR | |
if: ${{ github.event_name == 'pull_request' }} | |
run: > | |
echo Tag \`${{ steps.tag-name.outputs.tag-name }}\` was automatically created and pushed with | |
... https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | |
' (Publish Status iOS: ${{ needs.publish-ios.result }} / macOS: ${{ needs.publish-mac.result }})' | |
| gh pr comment ${{ github.event.number }} -F - | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
create-release: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'push' | |
&& github.ref_name == 'main' | |
timeout-minutes: 5 | |
needs: | |
- set-tag | |
- build-android | |
steps: | |
- name: Download APK | |
uses: actions/download-artifact@v3 | |
with: | |
name: apk | |
path: ${{ env.OUTPUT_DIR }} | |
- name: Create Release | |
run: > | |
gh release create ${{ needs.set-tag.outputs.tag-name }} | |
--draft | |
--generate-notes | |
${{ env.OUTPUT_DIR }}/*.apk | |
--repo ${{ github.repository }} | |
--notes 'This release is automatically created by actions ... https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |