ci: deploy to stapler
Deploy / Deploy to Stapler (push) Successful in 4m46s

This commit is contained in:
2026-05-02 16:50:27 +02:00
parent fa5440e2ec
commit f6673149c7
+27
View File
@@ -0,0 +1,27 @@
name: Deploy
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- "main"
jobs:
stapler:
name: "Deploy to Stapler"
runs-on: ubuntu-latest
if: ${{ vars.STAPLER_TARGET != '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Compress production files
run: tar -czf /tmp/dist.tar.gz .
- name: Upload to Stapler server
run: |
curl -s -X PUT --data-binary "@/tmp/dist.tar.gz" \
-H 'X-Token: ${{ secrets.STAPLER_TOKEN }}' \
${{ vars.STAPLER_CURL_ARGS }} \
${{ vars.STAPLER_TARGET }}