Skip to content

Commit

Permalink
ci: add gh release build
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSajid committed Jan 17, 2024
1 parent 6634abd commit 6caba83
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ jobs:
- name: Prepare GitHub Release artifacts
run: |
mkdir dist/
mv -v artifacts/aarch64-apple-darwin/gh-bofh dist/gh-bofh_darwin_arm64
mv -v artifacts/aarch64-unknown-linux-gnu/gh-bofh dist/gh-bofh_linux_arm64
mv -v artifacts/i686-unknown-linux-gnu/gh-bofh dist/gh-bofh_linux_386
mv -v artifacts/x86_64-apple-darwin/gh-bofh dist/gh-bofh_darwin_amd64
mv -v artifacts/x86_64-unknown-linux-gnu/gh-bofh dist/gh-bofh_linux_amd64
mv -v artifacts/x86_64-pc-windows-gnu/gh-bofh dist/gh-bofh_windows_amd64.exe
mv -v artifacts/i686-pc-windows-gnu/gh-bofh dist/gh
mv -v artifacts/aarch64-apple-darwin/gh-bofh dist/gh-bofh_${inputs.new-release-version}_darwin_arm64
mv -v artifacts/aarch64-unknown-linux-gnu/gh-bofh dist/gh-bofh_${inputs.new-release-version}_linux_arm64
mv -v artifacts/i686-unknown-linux-gnu/gh-bofh dist/gh-bofh_${inputs.new-release-version}_linux_386
mv -v artifacts/x86_64-apple-darwin/gh-bofh dist/gh-bofh_${inputs.new-release-version}_darwin_amd64
mv -v artifacts/x86_64-unknown-linux-gnu/gh-bofh dist/gh-bofh_${inputs.new-release-version}_linux_amd64
mv -v artifacts/x86_64-pc-windows-gnu/gh-bofh dist/gh-bofh_${inputs.new-release-version}_windows_amd64.exe
mv -v artifacts/i686-pc-windows-gnu/gh-bofh dist/gh-bofh_${inputs.new-release-version}_windows_386.exe
- name: Combine checksums
run: cat dist/**/*-SHA256SUM.txt | tee dist/SHA256SUMS.txt
- name: Install Conventional Commit preset
Expand All @@ -159,3 +159,9 @@ jobs:
CARGO_REGISTRY_TOKEN: ${{secrets.SEMREL_CRATES_IO}}
GIT_AUTHOR_NAME: ${{vars.GIT_AUTHOR_NAME}}
GIT_AUTHOR_EMAIL: ${{vars.GIT_AUTHOR_EMAIL}}
- name: Create GitHub Extension Release
uses: cli/gh-extension-precompile@v1
with:
build_script_override: "scripts/build.sh"
env:
RELEASE_VERSION: ${{steps.semantic.outputs.new_release_version}}
3 changes: 3 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

ls dist/

0 comments on commit 6caba83

Please sign in to comment.