mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-11 01:01:36 -05:00
commit
b02f5895d3
1 changed files with 7 additions and 1 deletions
8
.github/workflows/post-release.yml
vendored
8
.github/workflows/post-release.yml
vendored
|
@ -69,6 +69,10 @@ jobs:
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
rust: stable
|
rust: stable
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
|
- build: macos-aarch64
|
||||||
|
os: macos-latest
|
||||||
|
rust: stable
|
||||||
|
target: aarch64-apple-darwin
|
||||||
- build: win-msvc
|
- build: win-msvc
|
||||||
os: windows-2019
|
os: windows-2019
|
||||||
rust: stable
|
rust: stable
|
||||||
|
@ -94,18 +98,20 @@ jobs:
|
||||||
- name: Build archive
|
- name: Build archive
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
outdir="./target/${{ env.TARGET_DIR }}/release"
|
outdir="./target/${{ matrix.target }}/release"
|
||||||
staging="${{ env.BIN_NAME }}-${{ needs.create-release.outputs.release_version }}-${{ matrix.target }}"
|
staging="${{ env.BIN_NAME }}-${{ needs.create-release.outputs.release_version }}-${{ matrix.target }}"
|
||||||
mkdir -p "$staging"/{complete,doc}
|
mkdir -p "$staging"/{complete,doc}
|
||||||
cp {README.md,LICENSE-*} "$staging/"
|
cp {README.md,LICENSE-*} "$staging/"
|
||||||
cp {CHANGELOG.md,docs/*} "$staging/doc/"
|
cp {CHANGELOG.md,docs/*} "$staging/doc/"
|
||||||
if [ "${{ matrix.os }}" = "windows-2019" ]; then
|
if [ "${{ matrix.os }}" = "windows-2019" ]; then
|
||||||
cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}.exe" "$staging/"
|
cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}.exe" "$staging/"
|
||||||
|
ls -l "$staging"
|
||||||
cd "$staging"
|
cd "$staging"
|
||||||
7z a "../$staging.zip" .
|
7z a "../$staging.zip" .
|
||||||
echo "ASSET=$staging.zip" >> $GITHUB_ENV
|
echo "ASSET=$staging.zip" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}" "$staging/"
|
cp "target/${{ matrix.target }}/release/${{ env.BIN_NAME }}" "$staging/"
|
||||||
|
ls -l "$staging"
|
||||||
tar czf "$staging.tar.gz" -C "$staging" .
|
tar czf "$staging.tar.gz" -C "$staging" .
|
||||||
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
|
echo "ASSET=$staging.tar.gz" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue