From 40129ac5c0d21d50c8ce26322153027adffba4a5 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Mon, 1 Jul 2024 07:34:06 -0400 Subject: [PATCH 1/6] auto deploy main branch to vercel Add Vercel deployment workflow --- .github/workflows/vercel_deploy.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/vercel_deploy.yaml diff --git a/.github/workflows/vercel_deploy.yaml b/.github/workflows/vercel_deploy.yaml new file mode 100644 index 00000000..5d1af0e2 --- /dev/null +++ b/.github/workflows/vercel_deploy.yaml @@ -0,0 +1,33 @@ +name: Vercel deploy + +on: + push: + branches: + - main + paths: + # only run workflow when changes are made to these files + - package.json + # manual trigger + workflow_dispatch: + +jobs: + vercel-deploy: + name: Vercel deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - + name: Install Vercel CLI + run: npm install --global vercel@latest + - + name: Create .vercel/project.json + run: | + mkdir -p .vercel + echo '{"projectId":"${{ secrets.VERCEL_PROJECT_ID }}", "orgId":"${{ secrets.VERCEL_ORG_ID }}"}' > .vercel/project.json + - + name: Pull Vercel Environment Information + run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + - + name: Build Project Artifacts + run: vercel --prod --token=${{ secrets.VERCEL_TOKEN }} + From a7dea07b90cbb277414923d930b49fcccdc2a8dd Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Mon, 1 Jul 2024 07:45:53 -0400 Subject: [PATCH 2/6] Add initial test for Vercel deploy trigger --- .github/workflows/vercel_deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/vercel_deploy.yaml b/.github/workflows/vercel_deploy.yaml index 5d1af0e2..c12c82bc 100644 --- a/.github/workflows/vercel_deploy.yaml +++ b/.github/workflows/vercel_deploy.yaml @@ -4,6 +4,7 @@ on: push: branches: - main + - vercel-deploy # for initial test paths: # only run workflow when changes are made to these files - package.json From c7f3e2bf22320777df17efcf89ddd494aa308bc5 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Mon, 1 Jul 2024 07:47:03 -0400 Subject: [PATCH 3/6] Bump version to 0.0.1 in package.json --- gui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/package.json b/gui/package.json index 0ce489ca..ed6c9ab9 100644 --- a/gui/package.json +++ b/gui/package.json @@ -1,7 +1,7 @@ { "name": "stan-playground", "private": true, - "version": "0.0.0", + "version": "0.0.1", "type": "module", "prettier": { "tabWidth": 2, From 92f2b78afa9bf2c9067dc8250030b7d20ec8cd5d Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Mon, 1 Jul 2024 07:48:03 -0400 Subject: [PATCH 4/6] Update workflow to monitor changes in gui/package.json --- .github/workflows/vercel_deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/vercel_deploy.yaml b/.github/workflows/vercel_deploy.yaml index c12c82bc..895b1eb8 100644 --- a/.github/workflows/vercel_deploy.yaml +++ b/.github/workflows/vercel_deploy.yaml @@ -7,7 +7,7 @@ on: - vercel-deploy # for initial test paths: # only run workflow when changes are made to these files - - package.json + - gui/package.json # manual trigger workflow_dispatch: From 2b6c89a237a9aa008b53bdbd36d32b7df57c4796 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Mon, 1 Jul 2024 07:49:20 -0400 Subject: [PATCH 5/6] Bump version to 0.0.2 in package.json --- gui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/package.json b/gui/package.json index ed6c9ab9..baa6c7af 100644 --- a/gui/package.json +++ b/gui/package.json @@ -1,7 +1,7 @@ { "name": "stan-playground", "private": true, - "version": "0.0.1", + "version": "0.0.2", "type": "module", "prettier": { "tabWidth": 2, From 08a41ffa12b2998c47f01cefb9b4c6f0b2cba040 Mon Sep 17 00:00:00 2001 From: Jeremy Magland Date: Mon, 1 Jul 2024 07:51:03 -0400 Subject: [PATCH 6/6] Update deploy condition --- .github/workflows/vercel_deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/vercel_deploy.yaml b/.github/workflows/vercel_deploy.yaml index 895b1eb8..5cede695 100644 --- a/.github/workflows/vercel_deploy.yaml +++ b/.github/workflows/vercel_deploy.yaml @@ -5,9 +5,9 @@ on: branches: - main - vercel-deploy # for initial test - paths: - # only run workflow when changes are made to these files - - gui/package.json + # paths: + # # only run workflow when changes are made to these files + # - gui/package.json # manual trigger workflow_dispatch: