mirror of https://github.com/AMT-Cheif/drift.git
Set up automated publishing for drift_postgres
This commit is contained in:
parent
7106dfc519
commit
f043e2997a
|
@ -6,6 +6,7 @@ on:
|
|||
- 'drift-[0-9]+.[0-9]+.[0-9]+*'
|
||||
- 'drift_dev-[0-9]+.[0-9]+.[0-9]+*'
|
||||
- 'sqlparser-[0-9]+.[0-9]+.[0-9]+*'
|
||||
- 'drift_postgres-[0-9]+.[0-9]+.[0-9]+*'
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
|
@ -87,3 +88,22 @@ jobs:
|
|||
- run: dart pub get
|
||||
- run: dart pub lish --dry-run
|
||||
- run: dart pub lish -f
|
||||
|
||||
publish_drift_postgres:
|
||||
if: "${{ startsWith(github.ref_name, 'drift_postgres-') }}"
|
||||
needs: [setup]
|
||||
runs-on: ubuntu-latest
|
||||
environment: pub.dev
|
||||
permissions:
|
||||
id-token: write # Required for authentication using OIDC
|
||||
defaults:
|
||||
run:
|
||||
working-directory: extras/drift_postgres
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./.github/actions/prepare
|
||||
with:
|
||||
dart_version: ${{ needs.setup.outputs.dart_version }}
|
||||
- run: dart pub get
|
||||
- run: dart pub lish --dry-run
|
||||
- run: dart pub lish -f
|
||||
|
|
Loading…
Reference in New Issue