restore workflow

This commit is contained in:
zombieFox 2024-06-14 10:36:38 +01:00
parent 850bb495d0
commit ff6df20197
1 changed files with 30 additions and 30 deletions

View File

@ -1,30 +1,30 @@
# name: gh-pages-deploy
#
# on:
# push:
# branches:
# - main
#
# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2.3.1
# with:
# persist-credentials: false
# - uses: actions/setup-node@v2
# with:
# node-version: '12' # TODO IDK what version nighttab is built with normally.
# cache: 'npm'
# - run: |
# npm install
# npm run lint
# npm test
# npm run build
#
# - name: Deploy
# uses: JamesIves/github-pages-deploy-action@4.1.3
# with:
# branch: gh-pages
# folder: dist/web
name: gh-pages-deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '12'
cache: 'npm'
- run: |
npm install
npm run lint
npm test
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: dist/web