Bump fast-xml-parser from 4.5.3 to 4.5.4 #25
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - '*' | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/*.txt' | |
| - '**/*.png' | |
| - '**/*.jpg' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free Disk Space | |
| uses: jlumbroso/free-disk-space@main | |
| with: | |
| tool-cache: false | |
| android: false | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| docker-images: true | |
| swap-storage: true | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '21' | |
| - name: Create ignoreConfig.js | |
| run: | | |
| cat > app/config/ignoreConfig.js << 'EOF' | |
| export const CLIENT_ID = "${{ secrets.CLIENT_ID }}"; | |
| export const CLIENT_SECRET = "${{ secrets.CLIENT_SECRET }}"; | |
| export const ACCESS_KEY = ""; | |
| export const SECRET_KEY = ""; | |
| export const QN_HOST = ""; | |
| export const SCOPE = ""; | |
| EOF | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Android Release APK | |
| run: npx react-native build-android --mode=release | |
| - name: Setup bundletool | |
| run: | | |
| curl -L -o bundletool.jar https://github.com/google/bundletool/releases/download/1.15.6/bundletool-all-1.15.6.jar | |
| - name: Extract APK from AAB | |
| run: | | |
| java -jar bundletool.jar build-apks \ | |
| --bundle=android/app/build/outputs/bundle/release/app-release.aab \ | |
| --output=app.apks \ | |
| --mode=universal \ | |
| --ks=android/gsygithubapp-debug.jks \ | |
| --ks-pass=pass:123456 \ | |
| --ks-key-alias=debug \ | |
| --key-pass=pass:123456 | |
| mkdir -p android/app/build/outputs/apk/release | |
| unzip -p app.apks universal.apk > android/app/build/outputs/apk/release/app-release.apk | |
| apk: | |
| name: Generate APK | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Free Disk Space | |
| uses: jlumbroso/free-disk-space@main | |
| with: | |
| tool-cache: false | |
| android: false | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| docker-images: true | |
| swap-storage: true | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '21' | |
| - name: Create ignoreConfig.js | |
| run: | | |
| cat > app/config/ignoreConfig.js << 'EOF' | |
| export const CLIENT_ID = "${{ secrets.CLIENT_ID }}"; | |
| export const CLIENT_SECRET = "${{ secrets.CLIENT_SECRET }}"; | |
| export const ACCESS_KEY = ""; | |
| export const SECRET_KEY = ""; | |
| export const QN_HOST = ""; | |
| export const SCOPE = ""; | |
| EOF | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Android Release APK | |
| run: npx react-native build-android --mode=release | |
| - name: Setup bundletool | |
| run: | | |
| curl -L -o bundletool.jar https://github.com/google/bundletool/releases/download/1.15.6/bundletool-all-1.15.6.jar | |
| - name: Extract APK from AAB | |
| run: | | |
| java -jar bundletool.jar build-apks \ | |
| --bundle=android/app/build/outputs/bundle/release/app-release.aab \ | |
| --output=app.apks \ | |
| --mode=universal \ | |
| --ks=android/gsygithubapp-debug.jks \ | |
| --ks-pass=pass:123456 \ | |
| --ks-key-alias=debug \ | |
| --key-pass=pass:123456 | |
| mkdir -p android/app/build/outputs/apk/release | |
| unzip -p app.apks universal.apk > android/app/build/outputs/apk/release/app-release.apk | |
| - name: Upload APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: apk | |
| path: android/app/build/outputs/apk/release/app-release.apk | |
| release: | |
| name: Release APK | |
| needs: apk | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download APK from build | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: apk | |
| - name: Display structure of downloaded files | |
| run: ls -R | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1.1.4 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: ${{ github.ref }} | |
| - name: Upload Release APK | |
| id: upload_release_asset | |
| uses: actions/upload-release-asset@v1.0.1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./app-release.apk | |
| asset_name: app-release.apk | |
| asset_content_type: application/zip |