From c91f2cdac8f1a88a46a8be1653234ec77847a39b Mon Sep 17 00:00:00 2001 From: Tom Arra Date: Fri, 29 Apr 2022 15:35:51 -0500 Subject: [PATCH] ci: deploy script for dev --- .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..09c98c3e --- /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@v1.5.0 + with: + channel: stable + - run: flutter packages get + - run: flutter build web + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: "${{ secrets.GITHUB_TOKEN }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PINBALL_DEV }}" + projectId: pinball-dev + expires: 30d + channelId: live \ No newline at end of file