diff --git a/.github/workflows/vercel_deploy.yaml b/.github/workflows/vercel_deploy.yaml new file mode 100644 index 00000000..5cede695 --- /dev/null +++ b/.github/workflows/vercel_deploy.yaml @@ -0,0 +1,34 @@ +name: Vercel deploy + +on: + push: + branches: + - main + - vercel-deploy # for initial test + # paths: + # # only run workflow when changes are made to these files + # - gui/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 }} + diff --git a/gui/package.json b/gui/package.json index 0ce489ca..baa6c7af 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.2", "type": "module", "prettier": { "tabWidth": 2,