From d4773371b266271071f428739127332964bd6c42 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 26 Oct 2022 19:44:48 -0700 Subject: [PATCH] when pushing to main, we should continuously deploy frontend (and api) to cloud service as well. --- .github/workflows/cloud-deploy.yaml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/cloud-deploy.yaml diff --git a/.github/workflows/cloud-deploy.yaml b/.github/workflows/cloud-deploy.yaml new file mode 100644 index 00000000..5a8e17f2 --- /dev/null +++ b/.github/workflows/cloud-deploy.yaml @@ -0,0 +1,38 @@ +name: Cloud-Deploy +on: + push: + branches: [ main ] +# # Publish semver tags as releases. +# tags: [ 'v*.*.*' ] + + +jobs: + deploy: + name: deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18.x + - uses: actions/setup-go@v3 + with: + go-version: '1.18.3' + - run: go version + - run: | + make frontend-test + cd frontend + yarn run build -- --configuration sandbox --output-path=../dist +# env: +# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} +# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} +# - uses: chrnorm/deployment-action@v2 +# name: Create GitHub deployment +# id: deployment +# with: +# token: '${{ github.token }}' +# environment-url: https://lighthouse.fastenhealth.com/sandbox/ +# environment: sandbox +# initial-status: success + # more steps below where you run your deployment scripts inside the same action +