Files
packager/.github/workflows/deploy.yml
T
Thomas Weber a8b74e2c9b Add privacy-respecting analytics
optout by DNT or installing an adblocker
2021-06-24 14:09:27 -05:00

27 lines
567 B
YAML

name: Deploy
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 10.x
- run: npm ci
- run: npm run build
env:
NODE_ENV: production
PLAUSIBLE_API: https://stats.turbowarp.org/api/event
PLAUSIBLE_DOMAIN: packager.turbowarp.org
- run: npm test
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: dist