From 93b55430179650dc30a1bdd95aaca3c7ee339d54 Mon Sep 17 00:00:00 2001 From: Marc Lorenz Date: Tue, 24 Mar 2026 11:52:30 +0100 Subject: [PATCH] move built files to release branch --- .gitea/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 45d52c5..1aa9130 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -12,6 +12,9 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITEA_TOKEN }} - uses: actions/setup-node@v4 with: @@ -26,3 +29,13 @@ jobs: - name: Build run: npm run build + + - name: Push dist to release branch + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + git config user.name "ci" + git config user.email "ci@limelight" + git checkout -B release + git add -f dist/ + git commit -m "release: $(git log main -1 --pretty=%s)" || echo "nothing to commit" + git push origin release --force