From b7fd0dcd05d0a6aab401a6d0184ce1d8bdb0d118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=91=D0=B0?= =?UTF-8?q?=D0=B4=D1=8F=D0=B5=D0=B2?= Date: Fri, 18 Oct 2024 01:05:56 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D1=8B=20=D1=88=D0=B0=D0=B3=D0=B8?= =?UTF-8?q?=20=D0=B2=20workflow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 14 +++++++------- .gitea/workflows/release.yaml | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index df567b4..35615f7 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -13,7 +13,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: check-out repository code + - name: check-out uses: https://gitea.com/actions/checkout@v4 with: fetch-depth: 0 @@ -43,26 +43,26 @@ jobs: - name: test run: make test - - name: build amd64 binary + - name: build amd64 id: build-amd run: | echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT GOARCH=amd64 make clean build - - name: upload amd64 binary artifact + - name: upload amd64 uses: https://gitea.com/actions/upload-artifact@v3 with: name: ${{ steps.build-amd.outputs.ARTIFACT }} path: out/bin/* overwrite: true - - name: build arm64 binary + - name: build arm64 id: build-arm run: | echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT GOARCH=arm64 make clean build - - name: upload arm64 binary artifact + - name: upload arm64 uses: https://gitea.com/actions/upload-artifact@v3 with: name: ${{ steps.build-arm.outputs.ARTIFACT }} @@ -75,7 +75,7 @@ jobs: run: shell: bash steps: - - name: check-out repository code + - name: check-out uses: https://gitea.com/actions/checkout@v4 with: fetch-depth: 0 @@ -90,7 +90,7 @@ jobs: echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-$(go env GOARCH)" >> $GITHUB_OUTPUT make build - - name: upload artifact + - name: upload uses: https://gitea.com/actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.ARTIFACT }} diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 5aa1e6f..0b012cf 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -16,7 +16,7 @@ jobs: artifact_amd64: ${{ steps.build-amd.outputs.ARTIFACT }} artifact_arm64: ${{ steps.build-arm.outputs.ARTIFACT }} steps: - - name: check-out repository code + - name: check-out uses: https://gitea.com/actions/checkout@v4 with: fetch-depth: 0 @@ -27,7 +27,7 @@ jobs: with: go-version: ">=1.22" - - name: get meta-data + - name: meta id: meta env: SSH_HOST: ${{ secrets.DEB_SSH_HOST }} @@ -65,13 +65,13 @@ jobs: - name: test run: make test - - name: build amd64 package + - name: build amd64 id: build-amd run: | echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT GOARCH=amd64 make clean build package - - name: upload amd64 package + - name: upload amd64 uses: https://gitea.com/actions/upload-artifact@v3 with: name: ${{ steps.build-amd.outputs.ARTIFACT }} @@ -80,13 +80,13 @@ jobs: out/*.deb overwrite: true - - name: build arm64 package + - name: build arm64 id: build-arm run: | echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT GOARCH=arm64 make clean build package - - name: upload arm64 package + - name: upload arm64 uses: https://gitea.com/actions/upload-artifact@v3 with: name: ${{ steps.build-arm.outputs.ARTIFACT }} @@ -103,7 +103,7 @@ jobs: run: shell: bash steps: - - name: check-out repository code + - name: check-out uses: https://gitea.com/actions/checkout@v4 with: fetch-depth: 0 @@ -118,7 +118,7 @@ jobs: echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-$(go env GOARCH)" >> $GITHUB_OUTPUT make clean build package - - name: upload artifact + - name: upload uses: https://gitea.com/actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.ARTIFACT }} @@ -137,17 +137,17 @@ jobs: name: mousesoft_dput_profile path: /etc/dput.d/profiles/ - - name: download debian amd64 package + - name: download amd64 package uses: https://gitea.com/actions/download-artifact@v3-node20 with: name: ${{ needs.build.outputs.artifact_amd64 }} - - name: download debian arm64 package + - name: download arm64 package uses: https://gitea.com/actions/download-artifact@v3-node20 with: name: ${{ needs.build.outputs.artifact_arm64 }} - - name: deploy debian packages + - name: deploy packages env: SSH_HOST: ${{ secrets.DEB_SSH_HOST }} SSH_PORT: ${{ secrets.DEB_SSH_PORT }}