Skip to content

Night owl blue update #8

Night owl blue update

Night owl blue update #8

Workflow file for this run

name: Deploy to neocities
# only run on changes to master
on:
push:
branches:
- main
env:
FORCE_COLOR: 2
node_version: 16
concurrency: # prevent concurrent deploys doing strange things
group: deploy-to-neocities
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Set up any tools and build steps here
# This example uses a Node.js toolchain to build a site
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.node_version }}
- run: npm i
- run: npm run build
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: website-artifacts
path: _dist
deploy:
runs-on: ubuntu-latest
needs: build # Make sure the build job is completed before deploying
steps:
- uses: actions/checkout@v3
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: website-artifacts
path: _dist
- name: List contents of the working directory
run: ls -al
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1 # don't use master in production
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: _dist