diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 35615f7..642e0c2 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -9,18 +9,21 @@ on: tags-ignore: - "v*" +env: + TIMECMD: "" + jobs: build: runs-on: ubuntu-latest steps: - name: check-out - uses: https://gitea.com/actions/checkout@v4 + uses: https://git.mousesoft.ru/actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true - name: set-up go - uses: https://gitea.com/actions/setup-go@v3 + uses: https://git.mousesoft.ru/actions/setup-go@v3 with: go-version: ">=1.22" @@ -50,7 +53,7 @@ jobs: GOARCH=amd64 make clean build - name: upload amd64 - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: ${{ steps.build-amd.outputs.ARTIFACT }} path: out/bin/* @@ -63,7 +66,7 @@ jobs: GOARCH=arm64 make clean build - name: upload arm64 - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: ${{ steps.build-arm.outputs.ARTIFACT }} path: out/bin/* @@ -76,7 +79,7 @@ jobs: shell: bash steps: - name: check-out - uses: https://gitea.com/actions/checkout@v4 + uses: https://git.mousesoft.ru/actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -91,7 +94,7 @@ jobs: make build - name: upload - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.ARTIFACT }} path: out/bin/* diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 0b012cf..66e395b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -7,23 +7,28 @@ on: tags: - "v*" +env: + TIMECMD: "" + jobs: build: runs-on: ubuntu-latest + outputs: version: ${{ steps.meta.outputs.VERSION }} changes: ${{ steps.meta.outputs.CHANGES }} artifact_amd64: ${{ steps.build-amd.outputs.ARTIFACT }} artifact_arm64: ${{ steps.build-arm.outputs.ARTIFACT }} + steps: - name: check-out - uses: https://gitea.com/actions/checkout@v4 + uses: https://git.mousesoft.ru/actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true - name: set-up go - uses: https://gitea.com/actions/setup-go@v3 + uses: https://git.mousesoft.ru/actions/setup-go@v3 with: go-version: ">=1.22" @@ -40,7 +45,7 @@ jobs: sed -e "s/DEB_SSH_HOST/$SSH_HOST/g" deploy/dput/mousesoft.json.tpl > out/mousesoft.json - name: upload dput profile - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: mousesoft_dput_profile path: out/mousesoft.json @@ -58,7 +63,7 @@ jobs: run: make lint - name: golangci-lint - uses: https://github.com/golangci/golangci-lint-action@v6 + uses: https://git.mousesoft.ru/golangci/golangci-lint-action@v6 with: version: v1.60 @@ -72,7 +77,7 @@ jobs: GOARCH=amd64 make clean build package - name: upload amd64 - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: ${{ steps.build-amd.outputs.ARTIFACT }} path: | @@ -87,7 +92,7 @@ jobs: GOARCH=arm64 make clean build package - name: upload arm64 - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: ${{ steps.build-arm.outputs.ARTIFACT }} path: | @@ -97,14 +102,17 @@ jobs: build_windows: runs-on: windows + outputs: artifact: ${{ steps.build.outputs.ARTIFACT }} + defaults: run: shell: bash + steps: - name: check-out - uses: https://gitea.com/actions/checkout@v4 + uses: https://git.mousesoft.ru/actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -119,7 +127,7 @@ jobs: make clean build package - name: upload - uses: https://gitea.com/actions/upload-artifact@v3 + uses: https://git.mousesoft.ru/actions/upload-artifact@v3 with: name: ${{ steps.build.outputs.ARTIFACT }} path: out/*.msi @@ -127,23 +135,25 @@ jobs: deploy: runs-on: ubuntu-latest + needs: - build - build_windows + steps: - name: download dput profile - uses: https://gitea.com/actions/download-artifact@v3-node20 + uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20 with: name: mousesoft_dput_profile path: /etc/dput.d/profiles/ - name: download amd64 package - uses: https://gitea.com/actions/download-artifact@v3-node20 + uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20 with: name: ${{ needs.build.outputs.artifact_amd64 }} - name: download arm64 package - uses: https://gitea.com/actions/download-artifact@v3-node20 + uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20 with: name: ${{ needs.build.outputs.artifact_arm64 }} @@ -168,12 +178,12 @@ jobs: find -O1 . -name '*.changes' -exec dput mousesoft \{\} \; - name: download windows package - uses: https://gitea.com/actions/download-artifact@v3-node20 + uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20 with: name: ${{ needs.build_windows.outputs.artifact }} - name: release - uses: https://gitea.com/actions/gitea-release-action@v1 + uses: https://git.mousesoft.ru/actions/gitea-release-action@v1 with: title: "MouseSoft DrawIO-Export ${{ needs.build.outputs.version }}" body: "${{ needs.build.outputs.changes }}" diff --git a/cspell.config.yaml b/cspell.config.yaml index 5c89086..eb81828 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -1,6 +1,7 @@ version: "0.2" ignorePaths: - makefile + - .gitea/** dictionaryDefinitions: [] dictionaries: [] words: []