-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
83 additions
and
39 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Release Nitrite | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'nitrite-v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
publish: | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Setup Build System | ||
shell: bash | ||
run: | | ||
chmod +x ./.github/workflows/scripts/install-tools.sh | ||
./.github/workflows/scripts/install-tools.sh | ||
- name: Generate Code | ||
run: melos run generate | ||
|
||
- name: Generate Docs | ||
run: melos run dartdoc | ||
|
||
- name: Publish Nitrite | ||
run: dart pub publish -f | ||
working-directory: packages/nitrite |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,42 @@ | ||
name: Release Nitrite | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
publish: | ||
name: Publish Nitrite to pub.dev | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Setup Build System | ||
shell: bash | ||
run: | | ||
chmod +x ./.github/workflows/scripts/install-tools.sh | ||
./.github/workflows/scripts/install-tools.sh | ||
- name: Build Nitrite | ||
run: melos run test:without-coverage | ||
|
||
- name: Generate Docs | ||
run: melos run dartdoc | ||
|
||
- name: Publish Nitrite | ||
run: melos run publish | ||
#name: Release Nitrite | ||
# | ||
#on: | ||
# push: | ||
# tags: | ||
# - 'nitrite_generator-v[0-9]+.[0-9]+.[0-9]+*' | ||
# - 'nitrite_spatial-v[0-9]+.[0-9]+.[0-9]+*' | ||
# - 'nitrite_hive_adapter-v[0-9]+.[0-9]+.[0-9]+*' | ||
# - 'nitrite_support-v[0-9]+.[0-9]+.[0-9]+*' | ||
# - 'nitrite-v[0-9]+.[0-9]+.[0-9]+*' | ||
# | ||
#jobs: | ||
# publish: | ||
# name: Publish Nitrite to pub.dev | ||
# permissions: | ||
# id-token: write | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 0 | ||
# | ||
# - name: Setup Flutter | ||
# uses: subosito/flutter-action@v2 | ||
# with: | ||
# channel: 'stable' | ||
# | ||
# - name: Setup Build System | ||
# shell: bash | ||
# run: | | ||
# chmod +x ./.github/workflows/scripts/install-tools.sh | ||
# ./.github/workflows/scripts/install-tools.sh | ||
# | ||
# - name: Build Nitrite | ||
# run: melos run test:without-coverage | ||
# | ||
# - name: Generate Docs | ||
# run: melos run dartdoc | ||
# | ||
# - name: Publish Nitrite | ||
# run: melos run publish |