mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add short commit sha to ci build artifacts
This commit is contained in:
parent
7fe587a891
commit
1487ba222e
1 changed files with 13 additions and 8 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
|
@ -58,16 +58,16 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
toolchain: x86_64-unknown-linux-musl
|
toolchain: x86_64-unknown-linux-musl
|
||||||
|
platform: linux
|
||||||
ext:
|
ext:
|
||||||
output: crunchy_linux
|
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
toolchain: x86_64-pc-windows-msvc
|
toolchain: x86_64-pc-windows-msvc
|
||||||
|
platform: windows
|
||||||
ext: .exe
|
ext: .exe
|
||||||
output: crunchy_windows.exe
|
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
toolchain: x86_64-apple-darwin
|
toolchain: x86_64-apple-darwin
|
||||||
|
platform: darwin
|
||||||
ext:
|
ext:
|
||||||
output: crunchy_darwin
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
@ -98,36 +98,41 @@ jobs:
|
||||||
args: --release --all-features
|
args: --release --all-features
|
||||||
|
|
||||||
- name: Bundle manpages
|
- name: Bundle manpages
|
||||||
uses: TheDoctor0/zip-release@0.6.2
|
uses: thedoctor0/zip-release@0.6
|
||||||
with:
|
with:
|
||||||
type: zip
|
type: zip
|
||||||
filename: manpages.zip
|
filename: manpages.zip
|
||||||
path: ./target/release/manpages
|
path: ./target/release/manpages
|
||||||
|
|
||||||
- name: Bundle completions
|
- name: Bundle completions
|
||||||
uses: TheDoctor0/zip-release@0.6.2
|
uses: thedoctor0/zip-release@0.6
|
||||||
with:
|
with:
|
||||||
type: zip
|
type: zip
|
||||||
filename: completions.zip
|
filename: completions.zip
|
||||||
path: ./target/release/completions
|
path: ./target/release/completions
|
||||||
|
|
||||||
|
- name: Get short commit SHA
|
||||||
|
id: short_commit_sha
|
||||||
|
shell: bash
|
||||||
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload binary artifact
|
- name: Upload binary artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.output }}
|
name: crunchy-${{ short_commit_sha.sha_short }}_${{ matrix.platform }}${{ matrix.ext }}
|
||||||
path: ./target/release/crunchy-cli${{ matrix.ext }}
|
path: ./target/release/crunchy-cli${{ matrix.ext }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload manpages artifact
|
- name: Upload manpages artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: manpages.zip
|
name: manpages-${{ short_commit_sha.sha_short }}.zip
|
||||||
path: ./manpages.zip
|
path: ./manpages.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload completions artifact
|
- name: Upload completions artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: completions.zip
|
name: completions-${{ short_commit_sha.sha_short }}.zip
|
||||||
path: ./completions.zip
|
path: ./completions.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue