From fa9b2d91d53fdc704b71dbb84c5768073be57ad4 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 6 Nov 2024 13:02:53 -0500 Subject: [PATCH] ci: release a file with packages sums 'sums.txt' with releases --- .github/workflows/ci.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fe06519c..193b268ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -305,16 +305,24 @@ jobs: runs-on: ubuntu-latest steps: - - name: Download artifacts - uses: actions/download-artifact@v4 - - name: Fancy Checkout uses: sithlord48/fancy-checkout@v1.0.0 - name: Get version - if: (github.ref == 'refs/heads/master') && !(contains(github.ref, '/tags/v')) uses: ./.github/actions/get-version + - name: Download artifacts + uses: actions/download-artifact@v4 + + - name: Generate package checksums + id: generate_notes + shell: bash + run: | + mv $GITHUB_WORKSPACE/package-*/deskflow-* . + rm -rf $GITHUB_WORKSPACE/package-* + echo "Build: ${{env.DESKFLOW_VERSION }}" > sums.txt + sha256sum deskflow-* >> sums.txt + - name: Deploy continuous if: (github.ref == 'refs/heads/master') && !(contains(github.ref, '/tags/v')) uses: crowbarmaster/GH-Automatic-Releases@latest @@ -322,10 +330,10 @@ jobs: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "continuous" prerelease: true - title: "Continuous Build" - body: "build: ${{env.DESKFLOW_VERSION}}" + title: 'Continuous Build' files: | - package-*/* + deskflow-* + sums.txt - name: Deploy release if: contains(github.ref, '/tags/v') @@ -334,7 +342,8 @@ jobs: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false files: | - package-*/* + deskflow-* + sums.txt winget-publish: needs: release