diff --git a/.github/workflows/core_auto_update.yml b/.github/workflows/core_auto_update.yml index 3b09b8b..88f407a 100644 --- a/.github/workflows/core_auto_update.yml +++ b/.github/workflows/core_auto_update.yml @@ -14,6 +14,26 @@ jobs: with: tag1: PuerNya/sing-box tag2: building - tag3: singbox_core_PuerNya tag5: with_quic,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_clash_api,with_gvisor secrets: inherit + push_to_git: + needs: + - auto_update_singboxp_with_wg + runs-on: ubuntu-latest + steps: + - name: Create Release and Upload Release Asset + if: ${{ env.RELEASE != '' && env.PUSHDIR == '' }} + uses: softprops/action-gh-release@v1 + with: + tag_name: singbox_core_PuerNya + name: singbox_core_PuerNya + draft: false + prerelease: true + files: | + ./tmp/singbox*.tar.gz + + - name: Cleanup Workflow + uses: Mattraks/delete-workflow-runs@main + with: + retain_days: 1 + keep_minimum_runs: 2 \ No newline at end of file