Fix publish.yml

pull/1506/head
Cheryl 1 year ago
parent b19c49968f
commit ba4a416f83
  1. 8
      .github/workflows/publish.yml

@ -8,6 +8,10 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v2
@ -20,6 +24,8 @@ jobs:
run: flutter --disable-telemetry
- name: Publish to pub.dev
run: flutter pub publish --force
env:
PUB_ACCESS_TOKEN: ${{ secrets.PUB_ACCESS_TOKEN }}
run: |
echo 'PUB_ACCESS_TOKEN=$PUB_ACCESS_TOKEN' > $HOME/.pub-cache/credentials.json
flutter pub publish --force

Loading…
Cancel
Save