ci: detect changes and use actions/stapler-deploy
Lint / ESLint (push) Successful in 5m58s
Lint / Oxlint (push) Successful in 7m3s
Lint / TypeScript (push) Successful in 7m56s
Deploy / Build (push) Successful in 8m35s
Deploy / Deploy to Stapler (push) Successful in 6m38s

This commit is contained in:
2026-05-02 23:23:45 +02:00
parent 4389f799e8
commit 644a790de9
2 changed files with 27 additions and 9 deletions
+15 -8
View File
@@ -8,6 +8,15 @@ on:
push:
branches:
- "main"
paths:
- '.github/workflows/deploy.yml'
- 'package.json'
- 'bun.lock'
- 'src/**'
- 'index.html'
- 'vite.config.ts'
- 'tsconfig.*'
- 'env.d.ts'
jobs:
build:
@@ -32,18 +41,16 @@ jobs:
name: "Deploy to Stapler"
runs-on: ubuntu-latest
needs: build
if: ${{ vars.STAPLER_TARGET != '' }}
steps:
- name: Download production files
uses: actions/download-artifact@v3
with:
name: production-files
path: ./dist
- name: Compress production files
run: tar -czC dist -f dist.tar.gz .
- name: Upload to Stapler server
run: |
curl -s -X PUT --fail-with-body --data-binary "@dist.tar.gz" \
-H 'X-Token: ${{ secrets.STAPLER_TOKEN }}' \
${{ vars.STAPLER_CURL_ARGS }} \
${{ vars.STAPLER_TARGET }}
uses: actions/stapler-deploy@v1
with:
path: dist
token: ${{ secrets.STAPLER_TOKEN }}
target: ${{ github.repository }}
extra_curl_args: ${{ vars.STAPLER_CURL_ARGS }}
+12 -1
View File
@@ -4,7 +4,18 @@ concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: true
on: [push, workflow_dispatch]
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/lint.yml'
- 'package.json'
- 'bun.lock'
- 'src/**'
- '.oxlintrc.json'
- 'eslint.config.ts'
- 'tsconfig.*'
- 'env.d.ts'
jobs:
lint-eslint: