Temporarily disabling Android related build and publishing on our GitHub pipelines. (#739)

This commit is contained in:
Will 2024-07-26 12:47:34 -07:00 коммит произвёл GitHub
Родитель 1d280f11eb
Коммит 9f28ccc10f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 72 добавлений и 72 удалений

144
.github/workflows/publish.yml поставляемый
Просмотреть файл

@ -195,32 +195,32 @@ jobs:
package: packages/react-native-icons/package.json package: packages/react-native-icons/package.json
## Android ## Android
- name: Run Android generate script # - name: Run Android generate script
env: # env:
# see https://github.com/JS-DevTools/npm-publish/issues/15 # # see https://github.com/JS-DevTools/npm-publish/issues/15
INPUT_TOKEN: '' # INPUT_TOKEN: ''
run: npm run deploy:android # run: npm run deploy:android
working-directory: importer # working-directory: importer
- name: Setup Java # - name: Setup Java
uses: actions/setup-java@v1 # uses: actions/setup-java@v1
with: # with:
java-version: 8 # java-version: 8
- name: Base64 decodes and pipes the GPG key content into the secret file # - name: Base64 decodes and pipes the GPG key content into the secret file
env: # env:
GPG_KEY_CONTENT: ${{ secrets.GPG_KEY_CONTENT }} # GPG_KEY_CONTENT: ${{ secrets.GPG_KEY_CONTENT }}
SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }} # SIGNING_SECRET_KEY_RING_FILE: ${{ secrets.SIGNING_SECRET_KEY_RING_FILE }}
run: | # run: |
git fetch --unshallow # git fetch --unshallow
sudo bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'" # sudo bash -c "echo '$GPG_KEY_CONTENT' | base64 -d > '$SIGNING_SECRET_KEY_RING_FILE'"
- name: Build Android library # - name: Build Android library
uses: eskatos/gradle-command-action@v1 # uses: eskatos/gradle-command-action@v1
with: # with:
arguments: assembleRelease -DversionName='${{ env.NEW_VERSION }}' # arguments: assembleRelease -DversionName='${{ env.NEW_VERSION }}'
build-root-directory: android # build-root-directory: android
wrapper-directory: android # wrapper-directory: android
# Temporarily commenting out the publishing to Maven Central, as it is blocking the release for other platforms # Temporarily commenting out the publishing to Maven Central, as it is blocking the release for other platforms
# - name: Publish to Maven Central # - name: Publish to Maven Central
@ -238,9 +238,9 @@ jobs:
# build-root-directory: android # build-root-directory: android
# wrapper-directory: android # wrapper-directory: android
- name: Generate BUILD.gn file for Android # - name: Generate BUILD.gn file for Android
run: python3 generate_build_gn_android.py # run: python3 generate_build_gn_android.py
working-directory: importer # working-directory: importer
- name: Update icon sheet - name: Update icon sheet
run: python3 generate_icons_md.py run: python3 generate_icons_md.py
@ -261,58 +261,58 @@ jobs:
REMOTE_REPO="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" REMOTE_REPO="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git push $REMOTE_REPO HEAD:main --follow-tags --tags git push $REMOTE_REPO HEAD:main --follow-tags --tags
publish-android-demo: # publish-android-demo:
name: Publish Android demo app # name: Publish Android demo app
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: publish-library # needs: publish-library
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Bump version patch # - name: Bump version patch
run: | # run: |
grep -E "[0-9]+\.[0-9]+\.[0-9]+" FluentIcons.podspec | python3 -c """ # grep -E "[0-9]+\.[0-9]+\.[0-9]+" FluentIcons.podspec | python3 -c """
import sys # import sys
import os # import os
current_version = sys.stdin.read().strip().split(\"'\")[1] # current_version = sys.stdin.read().strip().split(\"'\")[1]
major, minor, patch = current_version.split('.') # major, minor, patch = current_version.split('.')
os.system(f'echo \"NEW_VERSION={major}.{minor}.{int(patch) + 1}\" >> \$GITHUB_ENV') # os.system(f'echo \"NEW_VERSION={major}.{minor}.{int(patch) + 1}\" >> \$GITHUB_ENV')
""" # """
- name: Use Node 11 # - name: Use Node 11
uses: actions/setup-node@v1 # uses: actions/setup-node@v1
with: # with:
node-version: 11.x # node-version: 11.x
- run: npm install # - run: npm install
working-directory: importer # working-directory: importer
- name: Run generate script # - name: Run generate script
run: npm run deploy:android # run: npm run deploy:android
working-directory: importer # working-directory: importer
- name: Setup Java # - name: Setup Java
uses: actions/setup-java@v1 # uses: actions/setup-java@v1
with: # with:
java-version: 8 # java-version: 8
- name: Restore release keystore # - name: Restore release keystore
run: | # run: |
echo "${{ secrets.ANDROID_KEYSTORE }}" > release.keystore.asc # echo "${{ secrets.ANDROID_KEYSTORE }}" > release.keystore.asc
gpg -d --passphrase "${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" --batch release.keystore.asc > release.keystore # gpg -d --passphrase "${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" --batch release.keystore.asc > release.keystore
- name: Build Android demo app # - name: Build Android demo app
uses: eskatos/gradle-command-action@v1 # uses: eskatos/gradle-command-action@v1
with: # with:
arguments: ':sample-showcase:assembleRelease -DversionName=${{ env.NEW_VERSION }} -DversionCode=${{ github.run_number }} -Pandroid.injected.signing.store.file=/home/runner/work/fluentui-system-icons/fluentui-system-icons/release.keystore -Pandroid.injected.signing.store.password=${{ secrets.ANDROID_KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.ANDROID_KEYSTORE_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}' # arguments: ':sample-showcase:assembleRelease -DversionName=${{ env.NEW_VERSION }} -DversionCode=${{ github.run_number }} -Pandroid.injected.signing.store.file=/home/runner/work/fluentui-system-icons/fluentui-system-icons/release.keystore -Pandroid.injected.signing.store.password=${{ secrets.ANDROID_KEYSTORE_PASSWORD }} -Pandroid.injected.signing.key.alias=${{ secrets.ANDROID_KEYSTORE_ALIAS }} -Pandroid.injected.signing.key.password=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}'
build-root-directory: android # build-root-directory: android
wrapper-directory: android # wrapper-directory: android
- name: Publish apk to App Center # - name: Publish apk to App Center
uses: wzieba/AppCenter-Github-Action@v1.0.0 # uses: wzieba/AppCenter-Github-Action@v1.0.0
with: # with:
appName: ${{ secrets.APP_CENTER_DEMO_APP_NAME }} # appName: ${{ secrets.APP_CENTER_DEMO_APP_NAME }}
token: ${{ secrets.APP_CENTER_TOKEN }} # token: ${{ secrets.APP_CENTER_TOKEN }}
group: Public # group: Public
file: android/sample-showcase/build/outputs/apk/release/sample-showcase-release.apk # file: android/sample-showcase/build/outputs/apk/release/sample-showcase-release.apk
releaseNotes: Please enjoy this latest version(${{ env.NEW_VERSION }}) of Fluent System Icons Demo. # releaseNotes: Please enjoy this latest version(${{ env.NEW_VERSION }}) of Fluent System Icons Demo.