Переименованы шаги в workflow.
All checks were successful
build / build_windows (push) Successful in 24s
build / build (push) Successful in 1m11s

This commit is contained in:
Алексей Бадяев 2024-10-18 01:05:56 +07:00
parent cf603b4869
commit b7fd0dcd05
Signed by: alexey
GPG Key ID: 686FBC1363E4AFAE
2 changed files with 18 additions and 18 deletions

View File

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

View File

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