Merge branch 'main' of https://github.com/snusxd/deltasprite
This commit is contained in:
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@@ -3,6 +3,8 @@ name: sorting
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- '_sprites/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-scripts:
|
run-scripts:
|
||||||
@@ -12,7 +14,7 @@ jobs:
|
|||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: setup node
|
- name: setup
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
@@ -21,15 +23,17 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: scripts
|
- name: scripts
|
||||||
|
working-directory: ./scripts
|
||||||
run: |
|
run: |
|
||||||
cd scripts
|
|
||||||
npx tsx write.ts
|
npx tsx write.ts
|
||||||
npx tsx sort.ts
|
npx tsx sort.ts
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: upload zip
|
- name: upload
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sort-archive-${{ github.sha }}
|
name: sorted
|
||||||
path: ./sort.zip
|
path: ./_sprites/sorted
|
||||||
retention-days: 30
|
retention-days: 15
|
||||||
|
|
||||||
|
- name: remove temp sorted folder
|
||||||
|
run: rm -rf ./_sprites/sorted
|
||||||
|
|||||||
Reference in New Issue
Block a user