diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index bd0b4eec..8255c0c0 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -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 }} diff --git a/.github/workflows/tag_release.yml b/.github/workflows/create_tag.yml similarity index 100% rename from .github/workflows/tag_release.yml rename to .github/workflows/create_tag.yml diff --git a/.github/workflows/publish_pubdev.yml b/.github/workflows/publish_pubdev.yml new file mode 100644 index 00000000..336e0cf5 --- /dev/null +++ b/.github/workflows/publish_pubdev.yml @@ -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 \ No newline at end of file