Skip to content

Commit

Permalink
feat(workflows): Add pub.dev publishing workflow
Browse files Browse the repository at this point in the history
Introduced a new GitHub Actions workflow for automatic publishing to pub.dev upon tagging. The workflow triggers on push events with version-like tags and uses the dart-lang/setup-dart action.
  • Loading branch information
tech-andgar committed Feb 17, 2024
1 parent 558ee75 commit afa3e51
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish to pub.dev

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*' # for tags like: '1.2.3'

jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
# Specify the github actions deployment environment
environment: pub.dev
# working-directory: path/to/package/within/repository

0 comments on commit afa3e51

Please sign in to comment.