Skip to content

Commit 50f9d18

Browse files
Refactor Github Action per b/485167538 (#679)
Co-authored-by: Ben Knutson <benknutson@google.com>
1 parent 35f4bc8 commit 50f9d18

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy_github_pages.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ jobs:
4848
channel: 'stable'
4949

5050
- name: Build Flutter web app
51-
run: flutter build web -v --release --output /tmp/${{ matrix.package }} --base-href /${{ github.event.repository.name }}/${{ matrix.package }}/
51+
run: flutter build web -v --release --output /tmp/${MATRIX_PACKAGE} --base-href /${GITHUB_EVENT_REPOSITORY_NAME}/${MATRIX_PACKAGE}/
5252
working-directory: packages/${{ matrix.package }}/example
53+
env:
54+
MATRIX_PACKAGE: ${{ matrix.package }}
55+
GITHUB_EVENT_REPOSITORY_NAME: ${{ github.event.repository.name }}
5356

5457
- name: Upload web build temporarily
5558
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

0 commit comments

Comments
 (0)