From 43cf8dd66f5da896c45f795cc809be3bd1f876a4 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sun, 13 Apr 2025 16:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E5=8A=A0=E5=85=A5obs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/building-deb.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/building-deb.yml b/.github/workflows/building-deb.yml index d316fcf..c2c7e2f 100755 --- a/.github/workflows/building-deb.yml +++ b/.github/workflows/building-deb.yml @@ -32,4 +32,24 @@ jobs: call-tianlu: uses: GXDE-OS/GXDE/.github/workflows/building-deb-tianlu.yml@master - secrets: inherit \ No newline at end of file + secrets: inherit + + UploadOBS: + runs-on: ubuntu-latest + steps: + - name: Get REPOSITORY Name + run: | + echo "REPO_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f2)" >> $GITHUB_ENV + REPO_NAME=$(echo "$GITHUB_REPOSITORY" | cut -d'/' -f2) + mkdir /home/runner/work/$REPO_NAME/$REPO_NAME/debian-deb-output + + - name: Upload to OBS + uses: LingmoOS/action-upload-to-obs@0.0.4 + with: + remove-old-sources: true + obs-package-name: ${{ env.REPO_NAME }} + obs-project-name: 'home:gfdgd-xi' + obs-user-name: ${{ secrets.OBS_USERNAME }} + obs-password: ${{ secrets.OBS_PASSWORD }} + obs-instance-url: 'https://api.opensuse.org' + local-package-dir: './debian-deb-output' \ No newline at end of file