@@ -2,8 +2,8 @@ name: Deploy
2
2
on :
3
3
workflow_dispatch :
4
4
inputs :
5
- tag :
6
- description : ' Tag name used to deploy the version '
5
+ new_version :
6
+ description : New version to deploy
7
7
required : true
8
8
type : string
9
9
95
95
- name : Build archive
96
96
shell : bash
97
97
env :
98
- TAG : ${{ inputs.tag }}
98
+ NEW_VERSION : ${{ inputs.new_version }}
99
99
run : |
100
100
set -ex
101
101
@@ -110,7 +110,7 @@ jobs:
110
110
if [[ "$platform" == *"win"* ]]; then
111
111
exe=".exe"
112
112
fi
113
- pkgname=$PROJECT_NAME-$TAG -$platform
113
+ pkgname=$PROJECT_NAME-$NEW_VERSION -$platform
114
114
mkdir tmp/$pkgname
115
115
# cp LICENSE README.md tmp/$pkgname
116
116
mv cotp-$platform/$BIN_NAME$exe tmp/$pkgname
@@ -129,7 +129,7 @@ jobs:
129
129
repo_token : ${{ secrets.GITHUB_TOKEN }}
130
130
file : dist/*
131
131
file_glob : true
132
- tag : ${{ inputs.tag }}
132
+ tag : v ${{ inputs.new_version }}
133
133
overwrite : true
134
134
135
135
publish_on_cargo_crates :
@@ -167,7 +167,7 @@ jobs:
167
167
- name : Generate PKGBUILDs
168
168
shell : bash
169
169
run : |
170
- python ci/build_pkgbuild.py ${{ inputs.tag }}
170
+ python ci/build_pkgbuild.py ${{ inputs.new_version }}
171
171
cat ./ci/cotp/PKGBUILD
172
172
cat ./ci/cotp-bin/PKGBUILD
173
173
@@ -179,7 +179,7 @@ jobs:
179
179
commit_username : ${{ secrets.AUR_USERNAME }}
180
180
commit_email : ${{ secrets.AUR_EMAIL }}
181
181
ssh_private_key : ${{ secrets.AUR_SSH_PRIVATE_KEY }}
182
- commit_message : Update cotp package to version ${{ inputs.tag }}
182
+ commit_message : Update cotp package to version ${{ inputs.new_version }}
183
183
ssh_keyscan_types : rsa,dsa,ecdsa,ed25519
184
184
185
185
- name : " Clean repo dir"
@@ -195,5 +195,5 @@ jobs:
195
195
commit_username : ${{ secrets.AUR_USERNAME }}
196
196
commit_email : ${{ secrets.AUR_EMAIL }}
197
197
ssh_private_key : ${{ secrets.AUR_SSH_PRIVATE_KEY }}
198
- commit_message : Update cotp-bin package to version ${{ inputs.tag }}
198
+ commit_message : Update cotp-bin package to version ${{ inputs.new_version }}
199
199
ssh_keyscan_types : rsa,dsa,ecdsa,ed25519
0 commit comments