mirror of
https://github.com/RxReader/weibo_kit.git
synced 2025-05-17 07:16:35 +08:00
Update publish.yml
This commit is contained in:
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: publish
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
@ -24,11 +25,5 @@ jobs:
|
||||
echo $CREDENTIALS > $PUB_CACHE/credentials.json
|
||||
- run: flutter --version
|
||||
- run: flutter pub get
|
||||
- run: flutter format --dry-run --set-exit-if-changed .
|
||||
- run: dart format --set-exit-if-changed .
|
||||
- run: echo "y" | flutter pub publish
|
||||
- name: Run pub.dev/update-credentials@shell
|
||||
env:
|
||||
UPDATE_SECRETS_PAT_TOKEN: ${{ secrets.UPDATE_SECRETS_PAT_TOKEN }}
|
||||
run: |
|
||||
gh auth login --with-token <<< $UPDATE_SECRETS_PAT_TOKEN
|
||||
gh secret set CREDENTIALS_JSON < $PUB_CACHE/credentials.json
|
||||
|
Reference in New Issue
Block a user