From afd99418cc3ef69827583e4ff349271784dfc0cb Mon Sep 17 00:00:00 2001 From: shamsmosowi Date: Tue, 4 Jan 2022 13:21:39 +0700 Subject: [PATCH] github action add build step --- .github/workflows/deploy-preview.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index f78d6306..06c1ad82 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -5,14 +5,21 @@ on: # Optionally configure to run only for specific files. For example: # paths: # - "website/**" - +env: + REACT_APP_FIREBASE_PROJECT_ID: tryrowy + REACT_APP_FIREBASE_PROJECT_WEB_API_KEY: + "${{ secrets.FIREBASE_WEB_API_KEY_TRYROWY }}" jobs: build_and_preview: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - # Add any build steps here. For example: - # - run: npm ci && npm run build + - uses: borales/actions-yarn@v2.3.0 + with: + cmd: install # will run `yarn install` command + - uses: borales/actions-yarn@v2.3.0 + with: + cmd: build # will run `yarn build` command - uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}"