From 27be798484f4408aa0b8906aeb2873c4094e9e70 Mon Sep 17 00:00:00 2001 From: Sasa Karanovic Date: Sat, 16 Mar 2024 15:48:47 -0400 Subject: [PATCH] Updating release action --- .github/workflows/create_release.yaml | 33 +++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/create_release.yaml b/.github/workflows/create_release.yaml index d07cbfd..342544e 100644 --- a/.github/workflows/create_release.yaml +++ b/.github/workflows/create_release.yaml @@ -64,20 +64,13 @@ jobs: --noconsole server.py - - uses: ksm2/archive-action@v1 - id: archive - with: - format: "zip" - name: VU_Server - root-directory: ${{ github.workspace }}\Artifacts\VUServer - - name: Archive Release - uses: thedoctor0/zip-release@0.7.5 - with: - type: 'zip' - directory: ${{ github.workspace }}\Artifacts\VUServer - filename: 'VUServer.zip' - exclusions: '*.git* /*node_modules/* .editorconfig' + uses: thedoctor0/zip-release@0.7.5 + with: + type: 'zip' + path: VUServer + directory: ${{ github.workspace }}\Artifacts + filename: 'VUServer.zip' # We are currently limited to offline signing. # So we are skipping the online installer creation @@ -90,6 +83,9 @@ jobs: # run: | # makensis /DINSTALLEROUTPUT="${{ github.workspace }}\Artifacts\VU1-Installer.exe" /DDIRDIST="${{ github.workspace }}\Artifacts\VUServer" /DDIRSOURCE="${{ github.workspace }}" ${{ github.workspace }}\installer\install.nsi + - run: dir ${{ github.workspace }}\Artifacts\VUServer + - run: dir ${{ github.workspace }}\Artifacts + - run: dir ${{ github.workspace }} ## Upload installer #- name: Upload build artifact @@ -101,12 +97,9 @@ jobs: # Create the release: https://github.com/softprops/action-gh-release - name: Release - uses: softprops/action-gh-release@v2 - if: startsWith(github.ref, 'refs/tags/') + uses: ncipollo/release-action@v1 with: - files: ${{ github.workspace }}\Artifacts\VUServer\VUServer.zip + artifacts: "${{ github.workspace }}\\Artifacts\\VUServer.zip" + body: "Draft release" draft: true - body: | - Changes in this Release - - First Change - - Second Change + allowUpdates: true