From 8d5f168a10e674effe27aab69d348c52f3f8a58f Mon Sep 17 00:00:00 2001 From: "Max P." Date: Mon, 26 May 2025 17:27:54 +0200 Subject: [PATCH] feat(workflows): add release sync to GitHub and clean up - Integrates Releases Sync Action into the build-and-deploy workflow - Removes the redundant sync-github workflow for simplification - Fixes minor formatting issues for consistency --- .gitea/workflows/build-and-deploy-release.yml | 18 ++++++++++-- .gitea/workflows/sync-github.yml | 28 ------------------- 2 files changed, 15 insertions(+), 31 deletions(-) delete mode 100644 .gitea/workflows/sync-github.yml diff --git a/.gitea/workflows/build-and-deploy-release.yml b/.gitea/workflows/build-and-deploy-release.yml index 46a6dbf..d590953 100644 --- a/.gitea/workflows/build-and-deploy-release.yml +++ b/.gitea/workflows/build-and-deploy-release.yml @@ -2,7 +2,7 @@ name: Build and Publish nightly package on: release: - types: [published] + types: [published] jobs: build-and-publish: @@ -59,6 +59,18 @@ jobs: run: .gitea/scripts/get-release-id.sh "${{ github.event.release.tag_name }}" - name: Upload assets - run: | + run: | .gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.whl_file }} - .gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.sdist_file }} \ No newline at end of file + .gitea/scripts/upload-asset.sh ./dist/${{ steps.get_whl.outputs.sdist_file }} + + - name: Run Releases Sync Action + uses: https://git.0xmax42.io/actions/releases-sync@main + with: + gitea_token: $ACTIONS_RUNTIME_TOKEN + gitea_url: https://git.0xmax42.io + gitea_owner: maxp + gitea_repo: ait + tag_name: ${{ inputs.tag || github.event.release.tag_name }} + github_token: ${{ secrets.SYNC_GITHUB_TOKEN }} + github_owner: 0xMax42 + github_repo: ait diff --git a/.gitea/workflows/sync-github.yml b/.gitea/workflows/sync-github.yml deleted file mode 100644 index 1af96bb..0000000 --- a/.gitea/workflows/sync-github.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Sync Release to GitHub - -on: - workflow_dispatch: - inputs: - tag: - description: "Release tag to synchronize" - required: false - type: string - release: - types: [published, edited] - -jobs: - sync-github: - runs-on: ubuntu-22.04 - - steps: - - name: Run Releases Sync Action - uses: https://git.0xmax42.io/actions/releases-sync@main - with: - gitea_token: $ACTIONS_RUNTIME_TOKEN - gitea_url: https://git.0xmax42.io - gitea_owner: maxp - gitea_repo: ait - tag_name: ${{ inputs.tag || github.event.release.tag_name }} - github_token: ${{ secrets.SYNC_GITHUB_TOKEN }} - github_owner: 0xMax42 - github_repo: ait