Skip to content

Commit

Permalink
ci: add checkout step to pub.dev workflow (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
axi92 authored Sep 20, 2024
1 parent 630e18c commit 9ca8261
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pub.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to pub.dev
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*' # Tag must be the trigger, defined on pub.dev in the package settings
- "[0-9]+.[0-9]+.[0-9]+*" # Tag must be the trigger, defined on pub.dev in the package settings
# https://dart.dev/tools/pub/automated-publishing#hardening-security-with-tag-protection-rules-on-github
jobs:
publish:
Expand All @@ -12,6 +12,11 @@ jobs:
permissions:
id-token: write # Required for authentication using OIDC
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}

- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v3
with:
Expand Down

0 comments on commit 9ca8261

Please sign in to comment.