Add release code to workflows

This commit is contained in:
DSR! committed 2024-06-17 02:11:46 -03:00
1 parent 19bf82d02a
commit 893732a6d8
2 files changed
+26 -1

No files matched your search

+13 -1
View File
@@ -109,10 +109,22 @@ jobs:
.\generate-checksums.ps1 -Directory "${{ github.workspace }}" -FilePattern "*.exe" -NoRecurse -OutputFile "${{ github.workspace }}/extras_installer_checksums.txt"
- name: Upload Setup as Artifact
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: setup-installer-artifact
name: extras-setup-installer-artifact
path: |
${{ github.workspace }}/*.exe
${{ github.workspace }}/extras_tools_checksums.txt
${{ github.workspace }}/extras_installer_checksums.txt
- name: Upload Setup as Artifact to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: |
${{ github.workspace }}/*.exe
${{ github.workspace }}/extras_tools_checksums.txt
${{ github.workspace }}/extras_installer_checksums.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+13
View File
@@ -77,6 +77,7 @@ jobs:
.\generate-checksums.ps1 -Directory "${{ github.workspace }}" -FilePattern "*.exe" -NoRecurse -OutputFile "${{ github.workspace }}/installer_checksums.txt"
- name: Upload Setup as Artifact
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: setup-installer-artifact
@@ -84,3 +85,15 @@ jobs:
${{ github.workspace }}/*.exe
${{ github.workspace }}/tools_checksums.txt
${{ github.workspace }}/installer_checksums.txt
- name: Upload Setup as Artifact to Release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: |
${{ github.workspace }}/*.exe
${{ github.workspace }}/tools_checksums.txt
${{ github.workspace }}/installer_checksums.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}