Исправлен workflow.
All checks were successful
build / build_windows (push) Successful in 47s
build / build (push) Successful in 1m31s

This commit is contained in:
Алексей Бадяев 2024-11-21 10:36:02 +07:00
parent 36c7e7470d
commit 960b7dcc5d
Signed by: alexey
GPG Key ID: 686FBC1363E4AFAE
3 changed files with 33 additions and 19 deletions

View File

@ -9,18 +9,21 @@ on:
tags-ignore: tags-ignore:
- "v*" - "v*"
env:
TIMECMD: ""
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: check-out - name: check-out
uses: https://gitea.com/actions/checkout@v4 uses: https://git.mousesoft.ru/actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
fetch-tags: true fetch-tags: true
- name: set-up go - name: set-up go
uses: https://gitea.com/actions/setup-go@v3 uses: https://git.mousesoft.ru/actions/setup-go@v3
with: with:
go-version: ">=1.22" go-version: ">=1.22"
@ -50,7 +53,7 @@ jobs:
GOARCH=amd64 make clean build GOARCH=amd64 make clean build
- name: upload amd64 - name: upload amd64
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: ${{ steps.build-amd.outputs.ARTIFACT }} name: ${{ steps.build-amd.outputs.ARTIFACT }}
path: out/bin/* path: out/bin/*
@ -63,7 +66,7 @@ jobs:
GOARCH=arm64 make clean build GOARCH=arm64 make clean build
- name: upload arm64 - name: upload arm64
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: ${{ steps.build-arm.outputs.ARTIFACT }} name: ${{ steps.build-arm.outputs.ARTIFACT }}
path: out/bin/* path: out/bin/*
@ -76,7 +79,7 @@ jobs:
shell: bash shell: bash
steps: steps:
- name: check-out - name: check-out
uses: https://gitea.com/actions/checkout@v4 uses: https://git.mousesoft.ru/actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
fetch-tags: true fetch-tags: true
@ -91,7 +94,7 @@ jobs:
make build make build
- name: upload - name: upload
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: ${{ steps.build.outputs.ARTIFACT }} name: ${{ steps.build.outputs.ARTIFACT }}
path: out/bin/* path: out/bin/*

View File

@ -7,23 +7,28 @@ on:
tags: tags:
- "v*" - "v*"
env:
TIMECMD: ""
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
version: ${{ steps.meta.outputs.VERSION }} version: ${{ steps.meta.outputs.VERSION }}
changes: ${{ steps.meta.outputs.CHANGES }} changes: ${{ steps.meta.outputs.CHANGES }}
artifact_amd64: ${{ steps.build-amd.outputs.ARTIFACT }} artifact_amd64: ${{ steps.build-amd.outputs.ARTIFACT }}
artifact_arm64: ${{ steps.build-arm.outputs.ARTIFACT }} artifact_arm64: ${{ steps.build-arm.outputs.ARTIFACT }}
steps: steps:
- name: check-out - name: check-out
uses: https://gitea.com/actions/checkout@v4 uses: https://git.mousesoft.ru/actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
fetch-tags: true fetch-tags: true
- name: set-up go - name: set-up go
uses: https://gitea.com/actions/setup-go@v3 uses: https://git.mousesoft.ru/actions/setup-go@v3
with: with:
go-version: ">=1.22" 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 sed -e "s/DEB_SSH_HOST/$SSH_HOST/g" deploy/dput/mousesoft.json.tpl > out/mousesoft.json
- name: upload dput profile - name: upload dput profile
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: mousesoft_dput_profile name: mousesoft_dput_profile
path: out/mousesoft.json path: out/mousesoft.json
@ -58,7 +63,7 @@ jobs:
run: make lint run: make lint
- name: golangci-lint - name: golangci-lint
uses: https://github.com/golangci/golangci-lint-action@v6 uses: https://git.mousesoft.ru/golangci/golangci-lint-action@v6
with: with:
version: v1.60 version: v1.60
@ -72,7 +77,7 @@ jobs:
GOARCH=amd64 make clean build package GOARCH=amd64 make clean build package
- name: upload amd64 - name: upload amd64
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: ${{ steps.build-amd.outputs.ARTIFACT }} name: ${{ steps.build-amd.outputs.ARTIFACT }}
path: | path: |
@ -87,7 +92,7 @@ jobs:
GOARCH=arm64 make clean build package GOARCH=arm64 make clean build package
- name: upload arm64 - name: upload arm64
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: ${{ steps.build-arm.outputs.ARTIFACT }} name: ${{ steps.build-arm.outputs.ARTIFACT }}
path: | path: |
@ -97,14 +102,17 @@ jobs:
build_windows: build_windows:
runs-on: windows runs-on: windows
outputs: outputs:
artifact: ${{ steps.build.outputs.ARTIFACT }} artifact: ${{ steps.build.outputs.ARTIFACT }}
defaults: defaults:
run: run:
shell: bash shell: bash
steps: steps:
- name: check-out - name: check-out
uses: https://gitea.com/actions/checkout@v4 uses: https://git.mousesoft.ru/actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
fetch-tags: true fetch-tags: true
@ -119,7 +127,7 @@ jobs:
make clean build package make clean build package
- name: upload - name: upload
uses: https://gitea.com/actions/upload-artifact@v3 uses: https://git.mousesoft.ru/actions/upload-artifact@v3
with: with:
name: ${{ steps.build.outputs.ARTIFACT }} name: ${{ steps.build.outputs.ARTIFACT }}
path: out/*.msi path: out/*.msi
@ -127,23 +135,25 @@ jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- build - build
- build_windows - build_windows
steps: steps:
- name: download dput profile - name: download dput profile
uses: https://gitea.com/actions/download-artifact@v3-node20 uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20
with: with:
name: mousesoft_dput_profile name: mousesoft_dput_profile
path: /etc/dput.d/profiles/ path: /etc/dput.d/profiles/
- name: download amd64 package - name: download amd64 package
uses: https://gitea.com/actions/download-artifact@v3-node20 uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20
with: with:
name: ${{ needs.build.outputs.artifact_amd64 }} name: ${{ needs.build.outputs.artifact_amd64 }}
- name: download arm64 package - name: download arm64 package
uses: https://gitea.com/actions/download-artifact@v3-node20 uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20
with: with:
name: ${{ needs.build.outputs.artifact_arm64 }} name: ${{ needs.build.outputs.artifact_arm64 }}
@ -168,12 +178,12 @@ jobs:
find -O1 . -name '*.changes' -exec dput mousesoft \{\} \; find -O1 . -name '*.changes' -exec dput mousesoft \{\} \;
- name: download windows package - name: download windows package
uses: https://gitea.com/actions/download-artifact@v3-node20 uses: https://git.mousesoft.ru/actions/download-artifact@v3-node20
with: with:
name: ${{ needs.build_windows.outputs.artifact }} name: ${{ needs.build_windows.outputs.artifact }}
- name: release - name: release
uses: https://gitea.com/actions/gitea-release-action@v1 uses: https://git.mousesoft.ru/actions/gitea-release-action@v1
with: with:
title: "MouseSoft DrawIO-Export ${{ needs.build.outputs.version }}" title: "MouseSoft DrawIO-Export ${{ needs.build.outputs.version }}"
body: "${{ needs.build.outputs.changes }}" body: "${{ needs.build.outputs.changes }}"

View File

@ -1,6 +1,7 @@
version: "0.2" version: "0.2"
ignorePaths: ignorePaths:
- makefile - makefile
- .gitea/**
dictionaryDefinitions: [] dictionaryDefinitions: []
dictionaries: [] dictionaries: []
words: [] words: []