mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-05-17 23:36:12 +08:00
feature 5.0.0
This commit is contained in:
1
.github/workflows/publish.yml
vendored
1
.github/workflows/publish.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
name: publish
|
name: publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
32
.github/workflows/publish_manually.yml
vendored
32
.github/workflows/publish_manually.yml
vendored
@ -1,32 +0,0 @@
|
|||||||
name: publish manually
|
|
||||||
|
|
||||||
on: workflow_dispatch
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish_manually:
|
|
||||||
name: Publish Manually
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: 'stable'
|
|
||||||
- name: Run pub.dev/inject-credentials@shell
|
|
||||||
env:
|
|
||||||
CREDENTIALS: ${{ secrets.CREDENTIALS_JSON }}
|
|
||||||
run: |
|
|
||||||
if [ -z $PUB_CACHE ];then
|
|
||||||
PUB_CACHE=~/.pub-cache
|
|
||||||
fi
|
|
||||||
mkdir -p $PUB_CACHE
|
|
||||||
echo $CREDENTIALS > $PUB_CACHE/credentials.json
|
|
||||||
- run: flutter --version
|
|
||||||
- run: flutter pub get
|
|
||||||
- run: flutter format --dry-run --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