fix status label on latest iOS version + update build #17
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: Build App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set Xcode version | |
| uses: ./.github/actions/set-xcode-version | |
| - name: Bump bundle version | |
| run: ./.github/scripts/bump_version.sh | |
| - name: Install gpg | |
| run: brew install gnupg | |
| - name: Install sourcery | |
| run: brew install sourcery | |
| - name: Setup provisioning profile | |
| env: | |
| CERTIFICATE_GPG_KEY: ${{ secrets.CERTIFICATE_GPG_KEY }} | |
| run: ./.github/scripts/decrypt_secrets.sh | |
| - name: Create secrets xcconfig | |
| env: | |
| OCTO_CLIENT_ID: ${{ secrets.OCTO_CLIENT_ID }} | |
| OCTO_CLIENT_SECRET: ${{ secrets.OCTO_CLIENT_SECRET }} | |
| run: | | |
| echo "GITHUB_CLIENT_ID = \"${OCTO_CLIENT_ID}\"" >> Hadge/Secrets.xcconfig | |
| echo "GITHUB_CLIENT_SECRET = \"${OCTO_CLIENT_SECRET}\"" >> Hadge/Secrets.xcconfig | |
| - name: Build project | |
| run: ./.github/scripts/build_app.sh | |
| - name: Exporting .ipa | |
| run: ./.github/scripts/export_ipa.sh | |
| - name: Save .ipa as artifact | |
| uses: actions/upload-artifact@v1 | |
| with: | |
| name: Hadge.ipa | |
| path: ./build/Hadge.ipa | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: 'main' |