99
99
- name : Push Changes
100
100
uses : ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
101
101
with :
102
- # # ssh: true
102
+ ssh : true
103
103
atomic : true
104
104
branch : main
105
105
repository : ${{ github.repository }}
@@ -113,69 +113,6 @@ jobs:
113
113
.cut_release_changes
114
114
include-hidden-files : true
115
115
116
- # # merge-develop-into-stable:
117
- # # name: Merge develop into stable
118
- # # runs-on: ubuntu-latest
119
- # # needs:
120
- # # - update-main
121
- # # environment: release
122
- # # permissions:
123
- # # contents: write # To be able to publish the release
124
- # # steps:
125
- # # - uses: actions/checkout@v4
126
- # # with:
127
- # # ref: stable
128
- # # repository: ${{ github.repository }}
129
- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
130
- # # fetch-depth: 0
131
-
132
- # # - name: Configure Git
133
- # # shell: bash
134
- # # run: |
135
- # # git config --global --add safe.directory "$(pwd)"
136
- # # git config --global user.name "Salt Project Packaging"
137
- # # git config --global user.email [email protected]
138
- # # git config --global commit.gpgsign false
139
-
140
- # # - name: Download Release Details
141
- # # uses: actions/download-artifact@v4
142
- # # with:
143
- # # name: release-details
144
-
145
- # # - name: Merge develop into stable
146
- # # run: |
147
- # # git merge --no-ff -m "Merge develop into stable for ${{ needs.update-develop.outputs.release-version }} release" origin/develop || touch .git-conflicts
148
- # # if [ -f .git-conflicts ]
149
- # # then
150
- # # git diff
151
- # # for f in $(git status | grep 'both modified' | awk '{ print $3 }')
152
- # # do
153
- # # git checkout --theirs "$f"
154
- # # pre-commit run -av --files "$f"
155
- # # git add "$f"
156
- # # done
157
- # # git commit -a -m "Merge develop into stable for ${{ needs.update-develop.outputs.release-version }} release(auto resolving conflicts to the develop version)"
158
- # # fi
159
-
160
- # # - name: Tag The ${{ needs.update-develop.outputs.release-version }} Release
161
- # # run: |
162
- # # git tag --no-sign -m "Release ${{ needs.update-develop.outputs.release-version }}" -a ${{ needs.update-develop.outputs.release-version }}
163
-
164
- # # ## - name: Update svtminion.sh sha256sum's
165
- # # ## run: |
166
- # # ## sha256sum svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
167
- # # ## sha256sum svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
168
- # # ## git commit -a -m "Update sha256 checksums" || git commit -a -m "Update sha256 checksums"
169
-
170
- # # ## - name: Push Changes
171
- # # ## uses: ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
172
- # # ## with:
173
- # # ## ssh: true
174
- # # ## tags: true
175
- # # ## atomic: true
176
- # # ## branch: stable
177
- # # ## repository: ${{ github.repository }}
178
-
179
116
publish-release :
180
117
name : Create GitHub Release
181
118
runs-on : ubuntu-latest
@@ -189,7 +126,7 @@ jobs:
189
126
with :
190
127
ref : main
191
128
repository : ${{ github.repository }}
192
- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
129
+ ssh-key : ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
193
130
194
131
- name : Configure Git
195
132
shell : bash
@@ -209,9 +146,26 @@ jobs:
209
146
CUT_RELEASE_VERSION=$(cat .cut_release_version)
210
147
echo "CUT_RELEASE_VERSION=${CUT_RELEASE_VERSION}" >> "$GITHUB_ENV"
211
148
149
+ - name : Update linux/svtminion.sh sha256sum's
150
+ run : |
151
+ sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
152
+ sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
153
+ ls -alh
154
+ git add svtminion.sh.sha256
155
+ git add svtminion.ps1.sha256
156
+ git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
157
+
158
+ - name : Push Changes
159
+ uses : ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
160
+ with :
161
+ ssh : true
162
+ tags : true
163
+ atomic : true
164
+ branch : main
165
+ repository : ${{ github.repository }}
166
+
212
167
- name : Tag The ${{ needs.update-main.outputs.release-version }} Release
213
168
run : |
214
- ## DGM git tag --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
215
169
git tag -f --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
216
170
217
171
- name : Create Github Release
@@ -227,6 +181,8 @@ jobs:
227
181
files : |
228
182
linux/svtminion.sh
229
183
windows/svtminion.ps1
184
+ svtminion.sh.sha256
185
+ svtminion.ps1.sha256
230
186
LICENSE
231
187
232
188
- name : Delete Release Details Artifact
@@ -250,19 +206,18 @@ jobs:
250
206
with :
251
207
ref : main
252
208
repository : ${{ github.repository }}
253
- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
209
+ ssh-key : ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
254
210
255
211
- name : Get linux/svtminion.sh on main branch sha256sum
256
212
run : |
257
213
echo "SH=$(sha256sum linux/svtminion.sh | awk '{ print $1 }')" >> "$GITHUB_ENV"
258
214
echo "VMTS_VERSION=$(bash linux/svtminion.sh --version | awk '{ print $1 }')" >> "$GITHUB_ENV"
259
- echo "DGM SH ,${SH}, and VMTS_VERSION ,${VMTS_VERSION},"
260
215
261
216
- uses : actions/checkout@v4
262
217
with :
263
218
ref : main
264
219
repository : ${{ github.repository }}
265
- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
220
+ ssh-key : ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
266
221
267
222
- name : Configure Git
268
223
shell : bash
@@ -289,25 +244,7 @@ jobs:
289
244
- name : Push Changes
290
245
uses : ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
291
246
with :
292
- # # ssh: true
293
- atomic : true
294
- branch : main
295
- repository : ${{ github.repository }}
296
-
297
- - name : Update linux/svtminion.sh sha256sum's
298
- run : |
299
- sha256sum linux/svtminion.sh | awk '{ print $1 }' > svtminion.sh.sha256
300
- sha256sum windows/svtminion.ps1 | awk '{ print $1 }' > svtminion.ps1.sha256
301
- ls -alh
302
- git add svtminion.sh.sha256
303
- git add svtminion.ps1.sha256
304
- git commit -am "Update sha256 checksums" || git commit -am "Update sha256 checksums"
305
-
306
- - name : Push Changes
307
- uses : ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
308
- with :
309
- # # ssh: true
310
- tags : true
247
+ ssh : true
311
248
atomic : true
312
249
branch : main
313
250
repository : ${{ github.repository }}
0 commit comments