Skip to content

Commit

Permalink
Update pub_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fredeil authored Jun 21, 2024
1 parent e419225 commit 641f2c1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pub_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
image: google/dart:latest
outputs:
sha: ${{ steps.commit.outputs.sha }}
permissions:
id-token: write # Required for authentication using OIDC

steps:
- name: Configure Environment Variables
Expand All @@ -42,7 +44,7 @@ jobs:
fi
- uses: actions/checkout@v3

- uses: dart-lang/setup-dart@v1
- name: Update pubspec.yaml
run: sed -i -e 's/^\(\s*version\s*:\s*\).*/\1 ${{ env.GIT_TAG }}/' ${{ env.FILE_PATH }}

Expand Down Expand Up @@ -87,7 +89,4 @@ jobs:
tags: true

- name: Publish to pub.dev
run: |
mkdir -p $HOME/.config/dart
echo '${{ secrets.PUB_CREDENTIALS }}' > "$HOME/.config/dart/pub-credentials.json"
dart pub publish -f
run: dart pub publish --force

0 comments on commit 641f2c1

Please sign in to comment.