Skip to content

Commit

Permalink
Workflow for publishing package (#24)
Browse files Browse the repository at this point in the history
- Added workflow for publishing package on publishing new GitHub release
  • Loading branch information
abobija authored Apr 28, 2024
1 parent e57f95b commit b53c8be
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish package

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1

- name: Authenticate with pub.dev
env:
PUB_CREDENTIALS_CONTENT: ${{ secrets.PUB_CREDENTIALS_CONTENT }}
run: |
mkdir -p ~/.config/dart
echo "$PUB_CREDENTIALS_CONTENT" > ~/.config/dart/pub-credentials.json
- run: dart pub publish

0 comments on commit b53c8be

Please sign in to comment.