Skip to content

Merge pull request #433 from pycontw/feat/update-2023-schedule #361

Merge pull request #433 from pycontw/feat/update-2023-schedule

Merge pull request #433 from pycontw/feat/update-2023-schedule #361

Workflow file for this run

name: Test, build, deploy
on:
push:
branches:
- main
jobs:
cd:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm ci
- name: Run linter πŸ‘€
run: npm run lint
- name: Run tests πŸ§ͺ
run: npm run test
- name: Build πŸ‘·πŸ½
run: npm run generate
env:
ROUTER_BASE: /pycontw-frontend/ # repo name
BUILD_TARGET: static
API_URL_BROWSER: https://staging.pycon.tw/prs
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
GOOGLE_TAG_MANAGER_ID: ${{ secrets.GOOGLE_TAG_MANAGER_ID }}
- name: Deploy πŸš€
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist
CLEAN: true