Merge pull request #119 from peiffer-innovations/dart_update_17325898… #105
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
name: Flutter Publisher | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/publisher.yml | |
- pubspec.yaml | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Validate | |
uses: peiffer-innovations/actions-flutter-validate@v1 | |
with: | |
generate_code: true | |
- name: Checkout Schemas | |
uses: actions/checkout@v4 | |
with: | |
repository: peiffer-innovations/flutter_json_schemas | |
token: ${{ secrets.REPO_TOKEN }} | |
fetch-depth: 0 | |
ref: main | |
path: schemas | |
- name: Update Schemas | |
run: | | |
git config --global user.name "action" | |
git config --global user.email "[email protected]" | |
git config --global url."https://action:${{secrets.REPO_TOKEN}}@github.com/".insteadOf https://github.com/ | |
rm -rf schemas/schemas/json_dynamic_widget_plugin_rive | |
mkdir schemas/schemas/json_dynamic_widget_plugin_rive | |
cp output/* schemas/schemas/json_dynamic_widget_plugin_rive | |
cd schemas | |
git add . | |
git commit --allow-empty -m "json_dynamic_widget_plugin_rive: schema update" | |
git push origin HEAD:main | |
cd .. | |
- name: Publish | |
uses: peiffer-innovations/[email protected] | |
with: | |
credentials: ${{ secrets.CREDENTIAL_JSON }} | |
- uses: peiffer-innovations/actions-dart-version-autotag@v2 | |
with: | |
token: ${{ secrets.REPO_TOKEN }} |