Skip to content

Commit

Permalink
Add dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Oct 30, 2024
1 parent 7faa146 commit 7d9ab22
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/netlify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,50 @@ jobs:
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

2 comments on commit 7d9ab22

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.