Merge remote-tracking branch 'origin/master' #268
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |