9999 - name : Push Changes
100100 uses : ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
101101 with :
102- # # ssh: true
102+ ssh : true
103103 atomic : true
104104 branch : main
105105 repository : ${{ github.repository }}
@@ -113,69 +113,6 @@ jobs:
113113 .cut_release_changes
114114 include-hidden-files : true
115115
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-
179116 publish-release :
180117 name : Create GitHub Release
181118 runs-on : ubuntu-latest
@@ -189,7 +126,7 @@ jobs:
189126 with :
190127 ref : main
191128 repository : ${{ github.repository }}
192- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
129+ ssh-key : ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
193130
194131 - name : Configure Git
195132 shell : bash
@@ -209,9 +146,26 @@ jobs:
209146 CUT_RELEASE_VERSION=$(cat .cut_release_version)
210147 echo "CUT_RELEASE_VERSION=${CUT_RELEASE_VERSION}" >> "$GITHUB_ENV"
211148
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+
212167 - name : Tag The ${{ needs.update-main.outputs.release-version }} Release
213168 run : |
214- ## DGM git tag --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
215169 git tag -f --no-sign -m "Release ${{ needs.update-main.outputs.release-version }}" -a ${{ needs.update-main.outputs.release-version }}
216170
217171 - name : Create Github Release
@@ -227,6 +181,8 @@ jobs:
227181 files : |
228182 linux/svtminion.sh
229183 windows/svtminion.ps1
184+ svtminion.sh.sha256
185+ svtminion.ps1.sha256
230186 LICENSE
231187
232188 - name : Delete Release Details Artifact
@@ -250,19 +206,18 @@ jobs:
250206 with :
251207 ref : main
252208 repository : ${{ github.repository }}
253- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
209+ ssh-key : ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
254210
255211 - name : Get linux/svtminion.sh on main branch sha256sum
256212 run : |
257213 echo "SH=$(sha256sum linux/svtminion.sh | awk '{ print $1 }')" >> "$GITHUB_ENV"
258214 echo "VMTS_VERSION=$(bash linux/svtminion.sh --version | awk '{ print $1 }')" >> "$GITHUB_ENV"
259- echo "DGM SH ,${SH}, and VMTS_VERSION ,${VMTS_VERSION},"
260215
261216 - uses : actions/checkout@v4
262217 with :
263218 ref : main
264219 repository : ${{ github.repository }}
265- # # ssh-key: ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
220+ ssh-key : ${{ secrets.SALT_VMTOOLS_RELEASE_KEY }}
266221
267222 - name : Configure Git
268223 shell : bash
@@ -289,25 +244,7 @@ jobs:
289244 - name : Push Changes
290245 uses : ad-m/github-push-action@b87afee92c6e70ea888be6203a3e9426fda49839
291246 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
311248 atomic : true
312249 branch : main
313250 repository : ${{ github.repository }}
0 commit comments