diff --git a/.gitea/workflows/build-on-tag.yml b/.gitea/workflows/build-on-tag.yml index 29bd740..d551ef0 100644 --- a/.gitea/workflows/build-on-tag.yml +++ b/.gitea/workflows/build-on-tag.yml @@ -24,6 +24,15 @@ jobs: - name: Build run: bun run build + - name: Copy generated file to repo + run: | + cp dist/index.js index.js + git config user.name "gitea-actions[bot]" + git config user.email "gitea-actions[bot]@users.noreply.gitea.com" + git add index.js + git commit -m "chore: update generated index.js" || echo "No changes to commit" + git push origin main + - name: Get version from package.json id: pkg run: | @@ -41,4 +50,3 @@ jobs: uses: akkuman/gitea-release-action@v1 with: tag_name: ${{ steps.pkg.outputs.version }} - files: dist/index.js