Publish new release #1
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: "Publish new release" | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| name: Publish new release | |
| runs-on: macos-15 | |
| steps: | |
| - name: Connect Bot | |
| uses: webfactory/ssh-agent@v0.7.0 | |
| with: | |
| ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | |
| - uses: actions/checkout@v4.1.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/ruby-cache | |
| - name: "Fastlane - Publish Release" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} | |
| run: bundle exec fastlane publish_release --verbose | |
| merge-main-to-develop: | |
| name: Merge main to develop | |
| runs-on: ubuntu-latest | |
| needs: release | |
| steps: | |
| - uses: actions/checkout@v4.1.1 | |
| with: | |
| token: ${{ secrets.ADMIN_API_TOKEN }} | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/ruby-cache | |
| - run: bundle exec fastlane merge_main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ADMIN_API_TOKEN }} | |
| - uses: 8398a7/action-slack@v3 | |
| if: failure() | |
| with: | |
| status: ${{ job.status }} | |
| text: "⚠️ <!subteam^S030AAHLDLN>, the merge of `main` to `develop` failed on CI. Consider using this command locally: `bundle exec fastlane merge_main`" | |
| fields: repo,commit,author,workflow | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |