Исправлен workflow
Some checks failed
build / build_windows (push) Failing after 32s
build / build (push) Successful in 40s

This commit is contained in:
Алексей Бадяев 2024-10-12 15:56:08 +07:00
parent 5712fb98ba
commit 474b937220
Signed by: alexey
GPG Key ID: 686FBC1363E4AFAE
2 changed files with 17 additions and 4 deletions

View File

@ -58,9 +58,9 @@ jobs:
build_windows:
runs-on: windows
defaults:
run:
shell: bash
# defaults:
# run:
# shell: bash
steps:
- name: check-out repository code
uses: https://gitea.com/actions/checkout@v4

View File

@ -29,6 +29,14 @@ jobs:
echo 'CHANGES<<EOF' >> $GITHUB_OUTPUT
gawk -f scripts/changes.awk -v version=$(make version-number) CHANGELOG.md >> $GITHUB_OUTPUT
echo EOF >> $GITHUB_OUTPUT
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
with:
name: mousesoft_dput_profile
path: out/mousesoft.json
overwrite: true
- name: set-up go
uses: https://gitea.com/actions/setup-go@v3
@ -107,6 +115,12 @@ jobs:
- build
- build_windows
steps:
- name: download dput profile
uses: https://gitea.com/actions/download-artifact@v3-node20
with:
name: mousesoft_dput_profile
path: /etc/dput.d/profiles/
- name: download debian amd64 package
uses: https://gitea.com/actions/download-artifact@v3-node20
with:
@ -124,7 +138,6 @@ jobs:
SSH_USER: ${{ secrets.DEB_SSH_USER }}
SSH_KEY: ${{ secrets.DEB_SSH_KEY }}
run: |
sed -e "s/DEB_SSH_HOST/$SSH_HOST/g" deploy/dput/mousesoft.json.tpl > /etc/dput.d/profiles/mousesoft.json
mkdir -p ~/.ssh/
echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/key
chmod 0600 ~/.ssh/key