on master help sign in
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

commit7ffb04a17aeed4815d97f184ead450ceb58d6a6f authorMartin Nordholts <enselic@gmail.com> dateSat 9 Jan 2021, 10:57 (6 years ago) parentc38c186
1 file changed+5−5
.github/workflows/CICD.yml+5−5
.github/workflows/CICD.yml+5−5
@@ -227,11 +227,6 @@ jobs:
227227 use-cross: ${{ matrix.job.use-cross }}
228228 command: check
229229 args: --target=${{ matrix.job.target }} --verbose --lib --no-default-features --features regex-onig,git,paging
230− - name: Upload build artifacts
231− uses: actions/upload-artifact@master
232− with:
233− name: ${{ env.PROJECT_NAME }}-${{ matrix.job.target }}
234− path: target/${{ matrix.job.target }}/release/${{ env.PROJECT_NAME }}${{ steps.vars.outputs.EXE_suffix }}
235230 - name: Package
236231 shell: bash
237232 run: |
@@ -344,6 +339,11 @@ jobs:
344339 # build dpkg
345340 fakeroot dpkg-deb --build "${DPKG_DIR}" "${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.DPKG_NAME }}"
346341 fi
342+ - name: Upload build artifacts
343+ uses: actions/upload-artifact@master
344+ with:
345+ name: ${{ steps.vars.outputs.PKG_NAME }}
346+ path: ${{ steps.vars.outputs.STAGING }}/${{ steps.vars.outputs.PKG_NAME }}
347347 - name: Publish archives and packages
348348 uses: softprops/action-gh-release@v1
349349 if: steps.vars.outputs.DEPLOY