Skip to content

Commit

Permalink
add publishing automation
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Aug 31, 2023
1 parent 19f80fb commit 192d2ee
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
# Trigger on pull requests that target the default branch.
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened, labeled, unlabeled]
# Also, trigger when tags are pushed to the repo.
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]

# The script below will perform publishing checks (version checks, publishing
# dry run, ...) when run on a PR, and perform an actual pub publish when run as
# a result of a git tag event.
jobs:
publish:
if: ${{ github.repository_owner == 'google' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main

0 comments on commit 192d2ee

Please sign in to comment.