show passkey/qr login errors #3
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 | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - '**.md' | |
| - '.github/**' | |
| - '!.github/workflows/build.yml' | |
| workflow_dispatch: | |
| concurrency: | |
| group: release-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yml | |
| secrets: inherit | |
| permissions: | |
| contents: read | |
| id-token: write | |
| attestations: write | |
| artifact-metadata: write | |
| with: | |
| artifact-name: inugram-${{ github.sha }} | |
| upload: | |
| needs: build | |
| if: | | |
| github.event_name == 'push' | |
| && github.repository == 'teidesu/inugram' | |
| && !contains(github.event.head_commit.message, 'norelease') | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: pnpm/action-setup@f40ffcd9367d9f12939873eb1018b921a783ffaa # v4 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4 | |
| with: | |
| name: inugram-${{ github.sha }} | |
| path: out | |
| - name: create github release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| tag='${{ needs.build.outputs.tag }}' | |
| apk='${{ needs.build.outputs.apk-name }}' | |
| gh release create "$tag" \ | |
| --target "$GITHUB_SHA" \ | |
| --title "$tag" \ | |
| --generate-notes \ | |
| "out/$apk" | |
| - name: upload to telegram | |
| env: | |
| TELEGRAM_API_ID: ${{ secrets.TELEGRAM_API_ID }} | |
| TELEGRAM_API_HASH: ${{ secrets.TELEGRAM_API_HASH }} | |
| TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
| TELEGRAM_CHANNEL: ${{ vars.TELEGRAM_CHANNEL || 'InugramCI' }} | |
| MTPROTO_SESSION: ${{ secrets.MTPROTO_SESSION }} | |
| GH_VARS_TOKEN: ${{ secrets.INU_VARS_TOKEN }} | |
| run: pnpm tsx scripts/ci/upload.ts out | |
| - name: bump INU_BUILD and LAST_RELEASE_SHA variables | |
| env: | |
| GH_TOKEN: ${{ secrets.INU_VARS_TOKEN }} | |
| run: | | |
| next=$((${{ needs.build.outputs.build-num }} + 1)) | |
| gh variable set INU_BUILD --body "$next" | |
| gh variable set LAST_RELEASE_SHA --body "$GITHUB_SHA" |