Show toast when no options selected #177
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: Build and Deploy to Netlify | |
on: | |
push: | |
branches: | |
- main | |
- d/** | |
pull_request: | |
jobs: | |
build-stg: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Cache Node.js modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: yarn | |
- name: Lint | |
run: yarn lint | |
- name: Build voting page stg | |
run: yarn build | |
env: | |
VOCDONI_ENVIRONMENT: stg | |
PROCESS_IDS: '["b31dff61814d8bd340fc16a71ae591b88418c42e799705b98073020000000054"]' | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: './dist' | |
# keep as a non existant branch, because we don't want to publish this | |
production-branch: main | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: 'Vocdoni DEV Deploy from GitHub Actions' | |
enable-pull-request-comment: true | |
enable-commit-comment: true | |
overwrites-pull-request-comment: true | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: eba70567-ca33-4504-9603-0ddc8c4437c6 | |
timeout-minutes: 1 | |
build-dev: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Cache Node.js modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: yarn | |
- name: Lint | |
run: yarn lint | |
- name: Build voting page dev | |
run: yarn build | |
env: | |
VOCDONI_ENVIRONMENT: dev | |
PROCESS_IDS: '["b31dff61814d8bd340fc16a71ae591b88418c42e799705b98073020000000054"]' | |
- name: Deploy to Netlify | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: './dist' | |
# keep as a non existant branch, because we don't want to publish this | |
production-branch: main | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: 'Vocdoni DEV Deploy from GitHub Actions' | |
enable-pull-request-comment: true | |
enable-commit-comment: true | |
overwrites-pull-request-comment: true | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: eba70567-ca33-4504-9603-0ddc8c4437c6 | |
timeout-minutes: 1 |