Skip to content

Commit

Permalink
🚀 Deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HeySreelal committed Dec 20, 2024
1 parent d9b5271 commit a062d35
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to pub.dev

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

permissions:
id-token: write

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Dart
uses: dart-lang/setup-dart@v1

- name: Install dependencies
run: dart pub get

- name: Verify package
run: dart pub publish --dry-run

- name: Publish package
run: dart pub publish --force

0 comments on commit a062d35

Please sign in to comment.