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