Исправлен workflow
This commit is contained in:
parent
5712fb98ba
commit
474b937220
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user