-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ohos-flutter-3.22.0' of github.com:yeliulee/fluwx into …
…ohos-flutter-3.22.0
- Loading branch information
Showing
16 changed files
with
658 additions
and
702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish Flutter package to pub.dev | ||
description: Publish your Flutter package to pub.dev | ||
|
||
inputs: | ||
working-directory: | ||
description: directory with-in the repository where the package is located (if not in the repository root) | ||
required: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 📚 Git Checkout | ||
uses: actions/checkout@v4 | ||
- name: 🐦 Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
|
||
- name: 🪪 Get Id Token | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
let pub_token = await core.getIDToken('https://pub.dev') | ||
core.exportVariable('PUB_TOKEN', pub_token) | ||
- name: 📢 Authenticate | ||
shell: ${{ inputs.shell }} | ||
run: flutter pub pub token add https://pub.dev --env-var PUB_TOKEN | ||
|
||
- name: 📦 Install dependencies | ||
shell: ${{ inputs.shell }} | ||
run: flutter pub get | ||
working-directory: ${{ inputs.working-directory }} | ||
|
||
# - name: 🌵 Dry Run | ||
# shell: ${{ inputs.shell }} | ||
# run: flutter pub publish --dry-run | ||
# working-directory: ${{ inputs.working-directory }} | ||
|
||
- name: 📢 Publish | ||
shell: ${{ inputs.shell }} | ||
run: flutter pub publish -f | ||
working-directory: ${{ inputs.working-directory }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Publish to pub.dev | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
publish: | ||
environment: 'pub.dev' | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📚 Git Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: ./.github/actions/publish_flutter_package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<paths xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<cache-path name="fluwxSharedData" path="fluwxSharedData/"/> | ||
</paths> | ||
<cache-path name="fluwxSharedData" path="fluwxSharedData/" /> | ||
<external-cache-path name="externalFluwxSharedData" path="fluwxSharedData/" /> | ||
</paths> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.