From 54d6a5a629c620713e918641f54b2ddfcf1cd989 Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Fri, 29 Apr 2022 16:46:49 -0500 Subject: [PATCH] ci: deploy script for dev (#261) * ci: deploy script for dev * use correct dev id * updates * add in release flag * update flutter action to 2 --- .github/workflows/deploy.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 00000000..8a6476eb --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,25 @@ +name: deploy + +on: + push: + branches: + - main + +jobs: + deploy-dev: + runs-on: ubuntu-latest + name: Deploy Development + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v2 + with: + channel: stable + - run: flutter packages get + - run: flutter build web --target lib/main_development.dart --web-renderer canvaskit --release + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PINBALL_DEV }}" + projectId: ashehwkdkdjruejdnensjsjdne + expires: 30d + channelId: live \ No newline at end of file