Skip to content

Commit

Permalink
Merge pull request #9 from vlnevyhosteny/master
Browse files Browse the repository at this point in the history
feat: release please with publish
  • Loading branch information
ViolanteCodes authored Oct 25, 2023
2 parents b919801 + 1320caa commit 024d7ef
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 024d7ef

Please sign in to comment.