Compare commits
6 Commits
main
...
ci-improvements
| Author | SHA1 | Date | |
|---|---|---|---|
| f6a543320e | |||
| 678d62ac14 | |||
| d93637bb48 | |||
| 01b936fffc | |||
| 5d3ce2fe0b | |||
| d188b09fde |
@@ -77,10 +77,13 @@ jobs:
|
|||||||
version="${GITHUB_REF_NAME#v}"
|
version="${GITHUB_REF_NAME#v}"
|
||||||
archive="nuwiki-ls-${version}-${{ matrix.target }}.tar.gz"
|
archive="nuwiki-ls-${version}-${{ matrix.target }}.tar.gz"
|
||||||
tar -czf "$archive" -C "target/${{ matrix.target }}/release" nuwiki-ls
|
tar -czf "$archive" -C "target/${{ matrix.target }}/release" nuwiki-ls
|
||||||
echo "archive=$archive" >> "$GITHUB_OUTPUT"
|
# Use a stable name without version so /releases/latest/download/nuwiki-ls-{target}.tar.gz always resolves.
|
||||||
|
stable="nuwiki-ls-${{ matrix.target }}.tar.gz"
|
||||||
|
mv "$archive" "$stable"
|
||||||
|
echo "archive=$stable" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: nuwiki-ls-${{ matrix.target }}
|
name: nuwiki-ls-${{ matrix.target }}
|
||||||
path: ${{ steps.package.outputs.archive }}
|
path: ${{ steps.package.outputs.archive }}
|
||||||
@@ -92,12 +95,11 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download all build artifacts
|
- name: Download all build artifacts
|
||||||
# upload-artifact@v4 + download-artifact@v4 with merge-multiple
|
# download-artifact@v3 nests each artifact under its own dir
|
||||||
# flattens all artifacts into the download path directly.
|
# (artifacts/<artifact-name>/<file>), so recurse.
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./artifacts
|
path: ./artifacts
|
||||||
merge-multiple: true
|
|
||||||
|
|
||||||
- name: Ensure jq + curl
|
- name: Ensure jq + curl
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user