Skip to content

Merge pull request #215 from bcomnes/dependabot/npm_and_yarn/markdown… #201

Merge pull request #215 from bcomnes/dependabot/npm_and_yarn/markdown…

Merge pull request #215 from bcomnes/dependabot/npm_and_yarn/markdown… #201

Workflow file for this run

name: Deploy to neociteis
on:
push:
branches:
- master
env:
node-version: lts/*
FORCE_COLOR: 2
concurrency: # prevent concurrent deploys doing starnge things
group: deploy-to-neocities
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
run: git lfs pull
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{env.node-version}}
- name: npm install and build
run: |
npm i
npm run build
env:
CI: true
- name: Create deployment
uses: bobheadxi/deployments@v1
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: neocities
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true