Skip to content

Commit

Permalink
feat: release please with publish
Browse files Browse the repository at this point in the history
Release-As: 2.0.1
  • Loading branch information
vlnevyhosteny committed Oct 24, 2023
1 parent ae83c69 commit 1320caa
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish to pub.dev

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

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/[email protected]

30 changes: 30 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow opens and updates a pull request with a new package version
# based on code changes.

# The pull request updates the version in pubspec.yaml, updates the changelog and creates release tags.

# For more information, see https://github.com/marketplace/actions/release-please-action

on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-22.04
steps:
- uses: google-github-actions/[email protected]
with:
release-type: dart
package-name: release-please-action
pull-request-title-pattern: 'chore(release): ${version}'
pull-request-header: ':robot: Merge this PR to release a new version'
extra-files: |
README.md

0 comments on commit 1320caa

Please sign in to comment.