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