Merge pull request #123 from flatironinstitute/use-stan-sampler-tests #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel deploy | |
on: | |
push: | |
branches: | |
- main | |
- vercel-deploy-2 # for initial test | |
# 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: | | |
cd gui | |
mkdir -p .vercel | |
echo '{"projectId":"${{ secrets.VERCEL_PROJECT_ID }}", "orgId":"${{ secrets.VERCEL_ORG_ID }}"}' > .vercel/project.json | |
- | |
name: Pull Vercel Environment Information | |
run: | | |
cd gui | |
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
- | |
name: Build Project Artifacts | |
run: | | |
cd gui | |
vercel --prod --token=${{ secrets.VERCEL_TOKEN }} | |