Skip to content

Commit

Permalink
Add publish pubdev and some minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Casey Hillers committed Nov 28, 2023
1 parent 9d32f91 commit a6c6a05
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
- name: Create a Release
uses: elgohr/Github-Release-Action@v5
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}"
with:
title: ${{ github.ref }}
File renamed without changes.
14 changes: 14 additions & 0 deletions .github/workflows/publish_pubdev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

# Publish using the reusable workflow from dart-lang.
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

0 comments on commit a6c6a05

Please sign in to comment.