diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index b9fc3055..697cf1db 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -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