Skip to content

Commit

Permalink
Temporarily disabling Android related build and publishing on our Git…
Browse files Browse the repository at this point in the history
…Hub pipelines. (#739)
  • Loading branch information
willchavez committed Jul 26, 2024
1 parent 1d280f1 commit 9f28ccc
Showing 1 changed file with 81 additions and 81 deletions.
162 changes: 81 additions & 81 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

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: Use Node 11
uses: actions/setup-node@v1
with:
node-version: 11.x

- run: npm install
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: 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: 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.
# publish-android-demo:
# name: Publish Android demo app
# runs-on: ubuntu-latest
# needs: publish-library

# 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: Use Node 11
# uses: actions/setup-node@v1
# with:
# node-version: 11.x

# - run: npm install
# 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: 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: 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.

0 comments on commit 9f28ccc

Please sign in to comment.