summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2021-01-09 10:57:47 +0100
committerDavid Peter <sharkdp@users.noreply.github.com>2021-01-09 14:31:19 +0100
commit7ffb04a17aeed4815d97f184ead450ceb58d6a6f (patch)
tree7acc64107119b322fa9e085da16fe2e07d754be1 /.github
parentc38c186d264ce823463104f300e3a07aafcf5eea (diff)
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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/CICD.yml10
1 files 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