Merge pull request #401 from getAlby/fix/connection-info-relay-online… #35
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: Release tag | |
| on: | |
| push: | |
| tags: | |
| - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| jobs: | |
| draft_release: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| id: ${{ steps.create_release.outputs.id }} | |
| steps: | |
| # Create Release | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: Release ${{ github.ref }} | |
| draft: true | |
| # prerelease: true | |
| build_android: | |
| needs: [draft_release] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🏗 Setup repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Java | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: 17 | |
| distribution: "temurin" | |
| - name: 🏗 Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22.x | |
| cache: yarn | |
| - name: 🏗 Setup EAS | |
| uses: expo/expo-github-action@v8 | |
| with: | |
| eas-version: latest | |
| token: ${{ secrets.EXPO_TOKEN }} | |
| - name: 📦 Install dependencies | |
| run: yarn install | |
| - name: 🏗 Create google-services.json file | |
| run: echo "${{ secrets.GOOGLE_SERVICES_JSON_B64 }}" | base64 -d > ./google-services.json | |
| - name: 🚀 Build app | |
| run: eas build --non-interactive --platform android --local --profile production_apk --output=./app-release.apk | |
| env: | |
| GOOGLE_SERVICES_JSON: "/home/runner/work/go/go/google-services.json" | |
| SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: alby-go-android.apk | |
| path: ./app-release.apk | |
| # APK | |
| - name: Upload APK to release | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ needs.draft_release.outputs.upload_url }} | |
| asset_path: ./app-release.apk | |
| asset_name: alby-go-${{ github.ref_name }}-android.apk | |
| asset_content_type: application/vnd.android.package-archive | |
| # publish-release: | |
| # needs: [release, build_android] | |
| # runs-on: ubuntu-latest | |
| # | |
| # steps: | |
| # - uses: eregon/publish-release@v1 | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # with: | |
| # release_id: ${{ needs.release.outputs.id }} | |
| # |