From 4b901af2e8e2f77ae2189d956186e6d4174c3b14 Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 8 Oct 2024 17:49:03 -0400 Subject: [PATCH 1/5] Add publish dry run to action --- .github/workflows/pana.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pana.yml b/.github/workflows/pana.yml index a01b16e..74866f1 100644 --- a/.github/workflows/pana.yml +++ b/.github/workflows/pana.yml @@ -34,3 +34,4 @@ jobs: dart pub get dart pub global activate pana pana --no-warning --exit-code-threshold 0 + dart pub publish --dry-run From 44e3b4707c7df06bfab732e3d552aef0f8d4edcc Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 8 Oct 2024 17:49:30 -0400 Subject: [PATCH 2/5] Do the dry run first since it's faster --- .github/workflows/pana.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pana.yml b/.github/workflows/pana.yml index 74866f1..9e9ea11 100644 --- a/.github/workflows/pana.yml +++ b/.github/workflows/pana.yml @@ -32,6 +32,6 @@ jobs: run: | cd ${{ matrix.package }} dart pub get + dart pub publish --dry-run dart pub global activate pana pana --no-warning --exit-code-threshold 0 - dart pub publish --dry-run From dfad1f38cfe88682c4405d3acd348f07bbc1b1d3 Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 8 Oct 2024 17:51:09 -0400 Subject: [PATCH 3/5] Clean up the action --- .github/workflows/pana.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pana.yml b/.github/workflows/pana.yml index 9e9ea11..75e3932 100644 --- a/.github/workflows/pana.yml +++ b/.github/workflows/pana.yml @@ -15,6 +15,9 @@ jobs: strategy: matrix: package: [vrchat_dart, vrchat_dart_generated] + defaults: + run: + working-directory: ${{ matrix.package }} steps: - uses: actions/checkout@v4 - uses: subosito/flutter-action@v2 @@ -23,15 +26,16 @@ jobs: - name: Pub cache uses: actions/cache@v4 env: - cache-name: pub-cache + cache-name: ${{ matrix.package }} with: path: ${{ env.PUB_CACHE }} key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }} restore-keys: ${{ env.cache-name }}- + - name: Pub get + run: dart pub get + - name: Publish dry run + run: dart pub publish --dry-run - name: Run pana run: | - cd ${{ matrix.package }} - dart pub get - dart pub publish --dry-run dart pub global activate pana pana --no-warning --exit-code-threshold 0 From aae1e8dab430150dc74ec7619cd6807c8385b8eb Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 8 Oct 2024 17:54:50 -0400 Subject: [PATCH 4/5] Update caching actions --- .github/workflows/generate.yml | 8 +++++--- .github/workflows/test.yml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index f860157..63383ed 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -16,10 +16,12 @@ jobs: - name: Pub cache uses: actions/cache@v4 + env: + cache-name: root with: - path: .pub-cache - key: pub-cache-${{ hashFiles('**/pubspec.lock') }} - restore-keys: pub-cache- + path: ${{ env.PUB_CACHE }} + key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }} + restore-keys: ${{ env.cache-name }}- - name: Homebrew cache uses: actions/cache@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dae7c1c..21aeff0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: - name: Pub cache uses: actions/cache@v4 env: - cache-name: pub-cache + cache-name: vrchat_dart with: path: ${{ env.PUB_CACHE }} key: ${{ env.cache-name }}-${{ hashFiles('**/pubspec.lock') }} From 85cd91fdc272490fdb6e772d57dfb9af52d04e4d Mon Sep 17 00:00:00 2001 From: Rexios Date: Tue, 8 Oct 2024 17:55:24 -0400 Subject: [PATCH 5/5] Update false secrets --- vrchat_dart_generated/pubspec.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vrchat_dart_generated/pubspec.yaml b/vrchat_dart_generated/pubspec.yaml index e9f4286..fda5c21 100644 --- a/vrchat_dart_generated/pubspec.yaml +++ b/vrchat_dart_generated/pubspec.yaml @@ -14,3 +14,8 @@ dev_dependencies: build_runner: ^2.4.10 json_serializable: ^6.1.5 lints: ^5.0.0 + +false_secrets: + - /doc/APIConfig.md + - /lib/src/model/api_config.dart + - /lib/src/model/api_config.g.dart