adding merged sorted zip
This commit is contained in:
87
.github/workflows/main.yml
vendored
87
.github/workflows/main.yml
vendored
@@ -1,10 +1,10 @@
|
||||
name: sorting
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
paths:
|
||||
- '_sprites/**'
|
||||
- 'scripts/**'
|
||||
- "_sprites/**"
|
||||
- "scripts/**"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -14,40 +14,59 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: setup
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: setup
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: requirments
|
||||
run: npm ci
|
||||
- name: requirments
|
||||
run: npm ci
|
||||
|
||||
- name: scripts
|
||||
working-directory: ./scripts
|
||||
run: |
|
||||
rm -rf ../_sprites/unready
|
||||
npx tsx write.ts
|
||||
npx tsx sort.ts
|
||||
npx tsx unready_delete.ts
|
||||
- name: setup python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
|
||||
- name: commit changes (exclude sorted)
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add -A .
|
||||
git reset _sprites/sorted
|
||||
git commit -m "actions update" || exit 0
|
||||
git push
|
||||
- name: install python deps
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pillow
|
||||
|
||||
- name: upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sorted
|
||||
path: ./_sprites/sorted
|
||||
retention-days: 15
|
||||
- name: scripts
|
||||
working-directory: ./scripts
|
||||
run: |
|
||||
rm -rf ../_sprites/unready
|
||||
npx tsx write.ts
|
||||
npx tsx sort.ts
|
||||
npx tsx unready.ts
|
||||
|
||||
- name: remove temp sorted folder
|
||||
run: rm -rf ./_sprites/sorted
|
||||
- name: commit changes (exclude sorted)
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add -A .
|
||||
git reset _sprites/sorted
|
||||
git commit -m "actions update" || exit 0
|
||||
git push
|
||||
|
||||
- name: upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sorted
|
||||
path: ./_sprites/sorted
|
||||
retention-days: 15
|
||||
|
||||
- name: upload-merged
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sorted
|
||||
path: ./_sprites/sorted-merged
|
||||
retention-days: 15
|
||||
|
||||
- name: remove temp sorted folder
|
||||
run: |
|
||||
rm -rf ./_sprites/sorted
|
||||
rm -rf ./_sprites/sorted-merged
|
||||
|
||||
Reference in New Issue
Block a user