Skip to content

Merge pull request #72 from globalprivacycontrol/dharb/node-18-17-0 #104

Merge pull request #72 from globalprivacycontrol/dharb/node-18-17-0

Merge pull request #72 from globalprivacycontrol/dharb/node-18-17-0 #104

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '18.17.0'
- name: Cache node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: v1-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build 🔧
run: |
npm run build
touch out/.nojekyll
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: out
CLEAN: true