Release patrol 2.3.0-dev.1, patrol_cli 2.2.0-dev.1 (#1686) #91
Workflow file for this run
This file contains 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: patrol publish | |
on: | |
push: | |
tags: ['patrol-v*'] | |
jobs: | |
publish: | |
name: Publish on pub.dev | |
runs-on: ubuntu-latest | |
outputs: | |
package_name: ${{ steps.pub_release.outputs.package_name }} | |
package_version: ${{ steps.pub_release.outputs.package_version }} | |
changelog_url: ${{ steps.pub_release.outputs.changelog_url }} | |
prerelease: ${{ steps.pub_release.outputs.prerelease }} | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
# This step adds the auth token for pub.dev | |
- name: Set up Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: stable | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Publish to pub.dev | |
id: pub_release | |
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 | |
with: | |
path: packages/patrol | |
notify: | |
name: Notify on Slack | |
runs-on: ubuntu-latest | |
needs: publish | |
if: needs.publish.outputs.prerelease == 'false' | |
steps: | |
- name: Share test results on Slack | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_CHANNEL: ${{ vars.SLACK_RELEASES_CHANNEL }} | |
SLACK_USERNAME: Patrol CI on GitHub Actions | |
SLACK_ICON: ${{ vars.SLACK_ICON }} | |
SLACK_TITLE: New ${{ needs.publish.outputs.package_name }} version | |
SLACK_MESSAGE: | | |
${{ needs.publish.outputs.package_name }} ${{ needs.publish.outputs.package_version }} has been released 🎉 | |
See release notes <${{ needs.publish.outputs.changelog_url }}|here> |