-
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 892 Bytes
/
neocities.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy to neociteis
on:
push:
branches:
- master
env:
node-version: 21
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@v4
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@v4
with:
node-version: ${{env.node-version}}
- run: npm i
- run: npm run deploy
env:
NEOCITIES_API_TOKEN: ${{ secrets.NEOCITIES_API_TOKEN }}