Skip to content

Commit

Permalink
ci: separate release-it and pub.dev publish to comply with dev.pub se…
Browse files Browse the repository at this point in the history
…ttings (#27)
  • Loading branch information
axi92 authored Sep 20, 2024
1 parent 7acd230 commit b3ff221
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .github/pub.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Publish to pub.dev

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
environment: 'pub.dev'
# working-directory: path/to/package/within/repository
7 changes: 2 additions & 5 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
"flutter pub get",
"npx auto-changelog -v ${version} -c .auto-changelog",
"flutter pub publish --to-archive abrevva_${version}.tgz"
],
"after:version:afterRelease": [
"git checkout refs/tags/${version}",
"flutter pub publish --force"
]
},
"npm": {
Expand All @@ -20,13 +16,14 @@
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "${version}",
"tag": true,
"commitArgs": [
"-S"
],
"tagArgs": [
"-s"
],
"push": false
"push": true
},
"github": {
"release": true,
Expand Down

0 comments on commit b3ff221

Please sign in to comment.