Skip to content

Project customization #1261

Project customization

Project customization #1261

Workflow file for this run

name: Build and Deploy to Netlify
on:
push:
branches: [develop]
pull_request:
jobs:
build-dev-vocdoni:
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 vocdoni app dev
run: yarn build
env:
VOCDONI_ENVIRONMENT: dev
FEATURES: >-
{
"vote":{"customization":true},
"unimplemented_census":["phone","email","crm","database","digital_certificate"],
"unimplemented_voting_type":["multi","approval","participatory","borda"],
"login":["web2","web3", "recovery"],
"census":["spreadsheet", "csp"],
"languages":["ca", "es", "en"]
}
CUSTOM_ORGANIZATION_DOMAINS: ${{ secrets.CUSTOM_ORGANIZATION_DOMAINS }}
CSP_URL: ${{ secrets.CSP_URL }}}
CSP_PUBKEY: ${{ secrets.CSP_PUBKEY }}
- 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: develop
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: 5bddb63a-3f70-4de9-9fa8-89afc6f813a8
timeout-minutes: 1
build-stg-vocdoni:
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 vocdoni app stg
run: yarn build
env:
VOCDONI_ENVIRONMENT: stg
FEATURES: >-
{
"vote":{"customization":true},
"unimplemented_census":["phone","email","crm","database","digital_certificate"],
"unimplemented_voting_type":["multi","approval","participatory","borda"],
"login":["web2","web3", "recovery"],
"census":["spreadsheet", "csp"],
"languages":["ca", "es", "en"]
}
CUSTOM_ORGANIZATION_DOMAINS: ${{ secrets.CUSTOM_ORGANIZATION_DOMAINS }}
CSP_URL: ${{ secrets.CSP_URL }}}
CSP_PUBKEY: ${{ secrets.CSP_PUBKEY }}
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './dist'
production-branch: develop
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Vocdoni STG 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: 5f9bd529-1b25-49af-acde-818bbd33109b
timeout-minutes: 1
build-stg-onvote:
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 onvote stg
run: yarn build
env:
VOCDONI_ENVIRONMENT: stg
FEATURES: >-
{
"vote":{"customization":true},
"census":["token","web3","gitcoin","spreadsheet"],
"unimplemented_census":["phone","email","crm","database","digital_certificate"],
"unimplemented_voting_type":["multi","approval","participatory","borda"],
"login":["web3","web2","recovery"],
"languages":["en"]
}
CUSTOM_ORGANIZATION_DOMAINS: ${{ secrets.CUSTOM_ORGANIZATION_DOMAINS }}
CSP_URL: ${{ secrets.CSP_URL }}}
CSP_PUBKEY: ${{ secrets.CSP_PUBKEY }}
THEME: onvote
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './dist'
production-branch: develop
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: 'Vocdoni STG 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: ed17f013-4901-4158-bad6-51c836f77b77
timeout-minutes: 1