Переименованы шаги в workflow.
This commit is contained in:
parent
cf603b4869
commit
b7fd0dcd05
@ -13,7 +13,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: check-out repository code
|
- name: check-out
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -43,26 +43,26 @@ jobs:
|
|||||||
- name: test
|
- name: test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
- name: build amd64 binary
|
- name: build amd64
|
||||||
id: build-amd
|
id: build-amd
|
||||||
run: |
|
run: |
|
||||||
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT
|
||||||
GOARCH=amd64 make clean build
|
GOARCH=amd64 make clean build
|
||||||
|
|
||||||
- name: upload amd64 binary artifact
|
- name: upload amd64
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build-amd.outputs.ARTIFACT }}
|
name: ${{ steps.build-amd.outputs.ARTIFACT }}
|
||||||
path: out/bin/*
|
path: out/bin/*
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: build arm64 binary
|
- name: build arm64
|
||||||
id: build-arm
|
id: build-arm
|
||||||
run: |
|
run: |
|
||||||
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT
|
||||||
GOARCH=arm64 make clean build
|
GOARCH=arm64 make clean build
|
||||||
|
|
||||||
- name: upload arm64 binary artifact
|
- name: upload arm64
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build-arm.outputs.ARTIFACT }}
|
name: ${{ steps.build-arm.outputs.ARTIFACT }}
|
||||||
@ -75,7 +75,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- name: check-out repository code
|
- name: check-out
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -90,7 +90,7 @@ jobs:
|
|||||||
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-$(go env GOARCH)" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-$(go env GOARCH)" >> $GITHUB_OUTPUT
|
||||||
make build
|
make build
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build.outputs.ARTIFACT }}
|
name: ${{ steps.build.outputs.ARTIFACT }}
|
||||||
|
@ -16,7 +16,7 @@ jobs:
|
|||||||
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 repository code
|
- name: check-out
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -27,7 +27,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: ">=1.22"
|
go-version: ">=1.22"
|
||||||
|
|
||||||
- name: get meta-data
|
- name: meta
|
||||||
id: meta
|
id: meta
|
||||||
env:
|
env:
|
||||||
SSH_HOST: ${{ secrets.DEB_SSH_HOST }}
|
SSH_HOST: ${{ secrets.DEB_SSH_HOST }}
|
||||||
@ -65,13 +65,13 @@ jobs:
|
|||||||
- name: test
|
- name: test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
- name: build amd64 package
|
- name: build amd64
|
||||||
id: build-amd
|
id: build-amd
|
||||||
run: |
|
run: |
|
||||||
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-amd64" >> $GITHUB_OUTPUT
|
||||||
GOARCH=amd64 make clean build package
|
GOARCH=amd64 make clean build package
|
||||||
|
|
||||||
- name: upload amd64 package
|
- name: upload amd64
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build-amd.outputs.ARTIFACT }}
|
name: ${{ steps.build-amd.outputs.ARTIFACT }}
|
||||||
@ -80,13 +80,13 @@ jobs:
|
|||||||
out/*.deb
|
out/*.deb
|
||||||
overwrite: true
|
overwrite: true
|
||||||
|
|
||||||
- name: build arm64 package
|
- name: build arm64
|
||||||
id: build-arm
|
id: build-arm
|
||||||
run: |
|
run: |
|
||||||
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-arm64" >> $GITHUB_OUTPUT
|
||||||
GOARCH=arm64 make clean build package
|
GOARCH=arm64 make clean build package
|
||||||
|
|
||||||
- name: upload arm64 package
|
- name: upload arm64
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build-arm.outputs.ARTIFACT }}
|
name: ${{ steps.build-arm.outputs.ARTIFACT }}
|
||||||
@ -103,7 +103,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- name: check-out repository code
|
- name: check-out
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@ -118,7 +118,7 @@ jobs:
|
|||||||
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-$(go env GOARCH)" >> $GITHUB_OUTPUT
|
echo "ARTIFACT=drawio-export-$(make version)_$(go env GOOS)-$(go env GOARCH)" >> $GITHUB_OUTPUT
|
||||||
make clean build package
|
make clean build package
|
||||||
|
|
||||||
- name: upload artifact
|
- name: upload
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.build.outputs.ARTIFACT }}
|
name: ${{ steps.build.outputs.ARTIFACT }}
|
||||||
@ -137,17 +137,17 @@ jobs:
|
|||||||
name: mousesoft_dput_profile
|
name: mousesoft_dput_profile
|
||||||
path: /etc/dput.d/profiles/
|
path: /etc/dput.d/profiles/
|
||||||
|
|
||||||
- name: download debian amd64 package
|
- name: download amd64 package
|
||||||
uses: https://gitea.com/actions/download-artifact@v3-node20
|
uses: https://gitea.com/actions/download-artifact@v3-node20
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.build.outputs.artifact_amd64 }}
|
name: ${{ needs.build.outputs.artifact_amd64 }}
|
||||||
|
|
||||||
- name: download debian arm64 package
|
- name: download arm64 package
|
||||||
uses: https://gitea.com/actions/download-artifact@v3-node20
|
uses: https://gitea.com/actions/download-artifact@v3-node20
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.build.outputs.artifact_arm64 }}
|
name: ${{ needs.build.outputs.artifact_arm64 }}
|
||||||
|
|
||||||
- name: deploy debian packages
|
- name: deploy packages
|
||||||
env:
|
env:
|
||||||
SSH_HOST: ${{ secrets.DEB_SSH_HOST }}
|
SSH_HOST: ${{ secrets.DEB_SSH_HOST }}
|
||||||
SSH_PORT: ${{ secrets.DEB_SSH_PORT }}
|
SSH_PORT: ${{ secrets.DEB_SSH_PORT }}
|
||||||
|
Loading…
Reference in New Issue
Block a user