ci: update deploy ci for gitea
Deploy / build (push) Failing after 3m22s
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-05-01 22:56:15 +02:00
parent 6127e132e4
commit 85783efb81
+20 -18
View File
@@ -1,39 +1,41 @@
name: Deploy name: Deploy
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: true
on: on:
schedule:
- cron: "*/30 * * * *"
push: push:
branches: branches:
- "main" - 'main'
workflow_dispatch:
jobs: jobs:
build: build:
name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v6 - uses: https://github.com/oven-sh/setup-bun@v2
- uses: oven-sh/setup-bun@v2
- run: bun install
- name: Setup SSH Key
uses: webfactory/ssh-agent@v0.9.1
with: with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} bun-version: latest
- run: git clone ${{ vars.ARTICLES_REPOSITORY }} articles - uses: actions/checkout@v6
- run: bun ci
- run: bun run build - run: bun run build
- uses: actions/upload-artifact@v7 - uses: actions/upload-artifact@v3
with: with:
name: production-files name: production-files
path: ./dist path: dist/
deploy: deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
if: ${{ vars.STAPLER_TARGET != '' }}
steps: steps:
- uses: actions/download-artifact@v8 - uses: actions/download-artifact@v3
with: with:
name: production-files name: production-files
path: ./dist path: ./dist
- run: tar -czC dist -f dist.tar.gz . - run: tar -czC dist -f dist.tar.gz .
- run: | - run: |
curl -v -X PUT -H 'X-Token: ${{ secrets.STAPLER_TOKEN }}' -H 'X-Host-Only: ${{ vars.TARGET_HOST }}' -H 'X-SPA: index.html' --data-binary "@dist.tar.gz" ${{ vars.STAPLER_TARGET }} curl -s -X PUT --data-binary "@dist.tar.gz" \
-H 'X-Token: ${{ secrets.STAPLER_TOKEN }}' \
${{ vars.STAPLER_CURL_ARGS }} \
${{ vars.STAPLER_TARGET }}