From decbf1cc8ce56ad8626c1f4dd966225839aa2ee9 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 20 Dec 2025 21:45:53 +0100 Subject: [PATCH] ffs --- .forgejo/workflows/playing-around.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/playing-around.yaml b/.forgejo/workflows/playing-around.yaml index 077037b..bf8a475 100644 --- a/.forgejo/workflows/playing-around.yaml +++ b/.forgejo/workflows/playing-around.yaml @@ -5,7 +5,7 @@ on: jobs: build: runs-on: docker - environment: ${{ env.FORGEJO_REF_NAME }} + #environment: ${{ env.FORGEJO_REF_NAME }} steps: - name: Checkout code @@ -21,3 +21,27 @@ jobs: - name: Build Astro project run: npm run build + + - name: Deploy dist to dist-${{ env.FORGEJO_REF_NAME }} + run: | + git config user.name "forgejo-actions[bot]" + git config user.email "forgejo-actions[bot]@users.noreply.local" + + git checkout --orphan dist-stage + git rm -rf . + + git add dist + git commit -m "Update dist" + + git push \ + https://x-access-token:${{ secrets.FORGEJO_TOKEN }}@${{ github.server_url }}/${{ github.repository }} \ + temp-build:dist-${{ env.FORGEJO_REF_NAME }} \ + --force + + # - name: Trigger deployment webhook + # env: + # DEPLOY_WEBHOOK: ${{ secrets.COOLIFY_STAGE_DEPLOY_WEBHOOK }} + # DEPLOY_TOKEN: ${{ secrets.COOLIFY_STAGE_DEPLOY_TOKEN }} + # run: | + # curl -v "$DEPLOY_WEBHOOK" \ + # --header "Authorization: Bearer $DEPLOY_TOKEN"