feat(workflows): add release sync to GitHub and clean up
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 6s
Build and Publish nightly package / build-and-publish (push) Successful in 17s

- Integrates Releases Sync Action into the build-and-deploy workflow
- Removes the redundant sync-github workflow for simplification
- Fixes minor formatting issues for consistency
This commit is contained in:
2025-05-26 17:27:54 +02:00
parent 910f1d6eed
commit 8d5f168a10
2 changed files with 15 additions and 31 deletions

View File

@@ -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 }}
.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

View File

@@ -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