Skip to content

Merge pull request #312 from WalletConnect/feature/link_mode #80

Merge pull request #312 from WalletConnect/feature/link_mode

Merge pull request #312 from WalletConnect/feature/link_mode #80

Workflow file for this run

name: Publish to pub.dev
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish:
name: Publish to pub.dev
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
# Checkout the repo
- uses: actions/checkout@v3
# Setup Dart SDK
- uses: dart-lang/setup-dart@v1
# Install Flutter and Dependencies
- uses: ./.github/actions/dependencies
# Publish --dry-run
- name: Check Publish Warnings
shell: bash
run: flutter pub publish --dry-run
# Publish
- name: Publish Package
shell: bash
run: flutter pub publish -f
# Notify
- name: Notify Channel
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: 'INCOMING_WEBHOOK'
with:
payload: |-
{
"text":"🚀 WalletConnectFlutterV2 *${{ github.ref_name }}* was just published at https://pub.dev/packages/walletconnect_flutter_v2"
}
# Launch locally
# act -j publish --container-architecture linux/amd64 -P macos-latest-xlarge=-self-hosted --secret-file .github/workflows/.env.secret -W .github/workflows/publish.yml