From 7ffb04a17aeed4815d97f184ead450ceb58d6a6f Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 9 Jan 2021 10:57:47 +0100 Subject: [PATCH] CICD: Build: Make 'Upload build artifacts' more like deploy The end goal is to upload the same artifacts for a PR as we deploy during a release, to make a regular PR pipeline as similar as possible to a deploy. The first step is to move 'Upload build artifacts' to after 'Package' so we can upload the same files. Also change the name and artifacts to be more similar to what we deploy for a release. For #1474 --- .github/workflows/CICD.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 5b745f25..d3273821 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -227,11 +227,6 @@ jobs: use-cross: ${{ matrix.job.use-cross }} command: check args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git,paging - - name: Upload build artifacts - uses: actions/upload-artifact@master - with: - name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }} - path: target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }} - name: Package shell: bash run: | @@ -344,6 +339,11 @@ jobs: # build dpkg fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}" fi + - name: Upload build artifacts + uses: actions/upload-artifact@master + with: + name: ${{ steps.vars.outputs.PKG_NAME }} + path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }} - name: Publish archives and packages uses: softprops/action-gh-release@v1 if: steps.vars.outputs.DEPLOY