diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c87e3c..d30c9bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,27 +126,7 @@ jobs: sudo apt update sudo apt install -y gh - - name: Create or update Release main - if: github.ref_name == 'main' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - RELEASE_NAME=test - RELEASE_BODY="This release is automatically updated from the main branch." - - EXISTING_RELEASE=$(gh release view "${RELEASE_NAME}" --json id --jq .id || echo "") - - if [[ -n "${EXISTING_RELEASE}" ]]; then - echo "release exist" - else - gh release create "${RELEASE_NAME}" \ - --prerelease=false \ - --title "${RELEASE_NAME}" \ - --notes "${RELEASE_BODY}" - fi - - name: Create or update Release tag - if: startsWith(github.ref, 'refs/tags/v') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -164,19 +144,6 @@ jobs: --notes "${RELEASE_BODY}" fi - - name: Upload assets to Release main - if: github.ref_name == 'main' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - RELEASE_NAME=test - - FILES=$(find . -type f -name "xiaomusic-*.tar.gz") - for FILE in ${FILES}; do - echo "type upload ${FILE}" - gh release upload "${RELEASE_NAME}" "${FILE}" --clobber - done - - name: Upload assets to Release tag if: startsWith(github.ref, 'refs/tags/v') env: