From 0022e03e284d24b8a048f2b2ceb8365f8d58a7fc Mon Sep 17 00:00:00 2001 From: auqhjjqdo Date: Tue, 3 Oct 2023 13:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9E=84=E5=BB=BA=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 643f932..469ec48 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,27 +32,32 @@ jobs: pip3 install . - name: Pyinstaller build - run: pyinstaller build.spec --distpath . + run: | + pyinstaller build.spec + cp config.sample.json dist/ - name: Upload artifact uses: actions/upload-artifact@v3 with: name: LiveRecorder_${{ runner.os }}_${{ github.ref_name }} path: | - config.sample.json - LiveRecorder* + dist/ - name: Create archive if: startsWith(github.ref_name, 'v') uses: thedoctor0/zip-release@main with: filename: LiveRecorder_${{ runner.os }}_${{ github.ref_name }}.zip + directory: dist/ path: | - config.sample.json LiveRecorder* + config.sample.json - name: Release if: startsWith(github.ref_name, 'v') - uses: softprops/action-gh-release@v1 + uses: ncipollo/release-action@v1 with: - files: ./LiveRecorder*.zip + artifacts: dist/LiveRecorder*.zip + allowUpdates: true + draft: true + generateReleaseNotes: true