env not secret
must use env. not secret in if's
This commit is contained in:
parent
4f5b359cfc
commit
fd346edebd
16
.github/workflows/flutter-nightly.yml
vendored
16
.github/workflows/flutter-nightly.yml
vendored
@ -161,13 +161,13 @@ jobs:
|
|||||||
keychain: rustdesk
|
keychain: rustdesk
|
||||||
|
|
||||||
- name: Check sign and import sign key
|
- name: Check sign and import sign key
|
||||||
if: ${{ secrets.MACOS_P12_BASE64== 'true' }}
|
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
||||||
run: |
|
run: |
|
||||||
security default-keychain -s rustdesk.keychain
|
security default-keychain -s rustdesk.keychain
|
||||||
security find-identity -v
|
security find-identity -v
|
||||||
|
|
||||||
- name: Import notarize key
|
- name: Import notarize key
|
||||||
if: ${{ secrets.MACOS_P12_BASE64== 'true' }}
|
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
||||||
uses: timheuer/base64-to-file@v1.2
|
uses: timheuer/base64-to-file@v1.2
|
||||||
with:
|
with:
|
||||||
# https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html#notarizing-and-stapling
|
# https://gregoryszorc.com/docs/apple-codesign/stable/apple_codesign_rcodesign.html#notarizing-and-stapling
|
||||||
@ -176,7 +176,7 @@ jobs:
|
|||||||
encodedString: ${{ secrets.MACOS_NOTARIZE_JSON }}
|
encodedString: ${{ secrets.MACOS_NOTARIZE_JSON }}
|
||||||
|
|
||||||
- name: Install rcodesign tool
|
- name: Install rcodesign tool
|
||||||
if: ${{ secrets.MACOS_P12_BASE64== 'true' }}
|
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
pushd /tmp
|
pushd /tmp
|
||||||
@ -247,7 +247,7 @@ jobs:
|
|||||||
./build.py --flutter ${{ matrix.job.extra-build-args }}
|
./build.py --flutter ${{ matrix.job.extra-build-args }}
|
||||||
|
|
||||||
- name: Codesign app and create signed dmg
|
- name: Codesign app and create signed dmg
|
||||||
if: ${{ secrets.MACOS_P12_BASE64== 'true' }}
|
if: ${{ env.MACOS_P12_BASE64== 'true' }}
|
||||||
run: |
|
run: |
|
||||||
security default-keychain -s rustdesk.keychain
|
security default-keychain -s rustdesk.keychain
|
||||||
security unlock-keychain -p ${{ secrets.MACOS_P12_PASSWORD }} rustdesk.keychain
|
security unlock-keychain -p ${{ secrets.MACOS_P12_PASSWORD }} rustdesk.keychain
|
||||||
@ -560,7 +560,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: r0adkll/sign-android-release@v1
|
- uses: r0adkll/sign-android-release@v1
|
||||||
name: Sign app APK
|
name: Sign app APK
|
||||||
if: ${{ secrets.ANDROID_SIGNING_KEY== 'true' }}
|
if: ${{ env.ANDROID_SIGNING_KEY== 'true' }}
|
||||||
id: sign-rustdesk
|
id: sign-rustdesk
|
||||||
with:
|
with:
|
||||||
releaseDirectory: ./signed-apk
|
releaseDirectory: ./signed-apk
|
||||||
@ -573,14 +573,14 @@ jobs:
|
|||||||
BUILD_TOOLS_VERSION: "30.0.2"
|
BUILD_TOOLS_VERSION: "30.0.2"
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
if: ${{ secrets.ANDROID_SIGNING_KEY== 'true' }}
|
if: ${{ env.ANDROID_SIGNING_KEY== 'true' }}
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
with:
|
with:
|
||||||
name: rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}-release-signed.apk
|
name: rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}-release-signed.apk
|
||||||
path: ${{steps.sign-rustdesk.outputs.signedReleaseFile}}
|
path: ${{steps.sign-rustdesk.outputs.signedReleaseFile}}
|
||||||
|
|
||||||
- name: Publish signed apk package
|
- name: Publish signed apk package
|
||||||
if: ${{ secrets.ANDROID_SIGNING_KEY== 'true' }}
|
if: ${{ env.ANDROID_SIGNING_KEY== 'true' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
@ -589,7 +589,7 @@ jobs:
|
|||||||
${{steps.sign-rustdesk.outputs.signedReleaseFile}}
|
${{steps.sign-rustdesk.outputs.signedReleaseFile}}
|
||||||
|
|
||||||
- name: Publish unsigned apk package
|
- name: Publish unsigned apk package
|
||||||
if: ${{ secrets.ANDROID_SIGNING_KEY!= 'true' }}
|
if: ${{ env.ANDROID_SIGNING_KEY!= 'true' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user