Skip to content

chore(release): publish packages #69

chore(release): publish packages

chore(release): publish packages #69

Workflow file for this run

name: Publish Release(s)
on:
push:
tags:
- "*"
jobs:
publish_github_release:
# macOS because we can cross-compile to all other platforms from it
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v2
- uses: mlugg/setup-zig@v1
- uses: KyleMayes/install-llvm-action@v1
with:
version: "15"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25b
- name: Build all library binaries
run: melos run build
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: platform-build/*
publish_pub_release:
# Modified from dart-lang/setup-dart/.github/workflows/publish.yml@7361df6
runs-on: ubuntu-latest
needs: publish_github_release
permissions:
id-token: write # this is required for requesting the JWT
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v2
- name: Dry-run publish to pub.dev
run: melos publish -y --dry-run
- name: Publish to pub.dev
run: melos publish -y --no-dry-run