Skip to content

Commit

Permalink
chore(release): v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
QaidVoid committed Nov 4, 2024
1 parent 6fa129b commit 5cc4559
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 24 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,26 @@ jobs:
mkdir -p release
cp {LICENSE,README.md,CHANGELOG.md} release/
cp "target/${{ matrix.build.TARGET }}/release/soar" release/
mv release/ soar-${{ env.RELEASE_VERSION }}/
- name: Create release artifacts
shell: bash
run: |
cp soar-${{ env.RELEASE_VERSION }}/soar soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }}
b3sum soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }} \
> soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }}.b3sum
tar -czvf soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }}.tar.gz \
soar-${{ env.RELEASE_VERSION }}/
b3sum soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }}.tar.gz \
> soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }}.tar.gz.b3sum
cp release/soar soar-${{ matrix.build.NAME }}
b3sum soar-${{ matrix.build.NAME }} \
> soar-${{ matrix.build.NAME }}.b3sum
tar -czvf soar-${{ matrix.build.NAME }}.tar.gz \
release/
b3sum soar-${{ matrix.build.NAME }}.tar.gz \
> soar-${{ matrix.build.NAME }}.tar.gz.b3sum
- name: Publish to GitHub
if: ${{ !contains(github.ref, '-') }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: soar-${{ env.RELEASE_VERSION }}-${{ matrix.build.NAME }}*
file: soar-${{ matrix.build.NAME }}*
file_glob: true
overwrite: true
tag: ${{ github.ref }}
release_name: "Release v${{ env.RELEASE_VERSION }}"
release_name: "Soar v${{ env.RELEASE_VERSION }}"
body: "${{ needs.generate-changelog.outputs.release_body }}"
- name: Publish to GitHub (pre-release)
if: ${{ contains(github.ref, '-') }}
Expand Down
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,43 @@

## [0.4.0](https://github.com/QaidVoid/soar/compare/v0.3.1..v0.4.0) - 2024-11-03

### ⛰️ Features

- *(download)* Add progressbar & output file path support - ([f7dcea8](https://github.com/QaidVoid/soar/commit/f7dcea8ef6a19e3a8496c78d1ea9097846ecff28))
- *(download)* Fallback to download package if invalid URL - ([eccbb87](https://github.com/QaidVoid/soar/commit/eccbb87e640af2477e3c55fe41c0e344f6b25da0))
- *(flatimage)* Integrate flatimage using remote files - ([e94d480](https://github.com/QaidVoid/soar/commit/e94d48085fb2e64f61b09053d0c6578d2e7761cb))
- *(inspect)* Add inspect command to view build script - ([bcef36c](https://github.com/QaidVoid/soar/commit/bcef36cbc0045230357ca37afb5c7480f4cab046))
- *(progress)* Re-implement installation progress bar - ([89ed804](https://github.com/QaidVoid/soar/commit/89ed804e396944b4e53a8091c0024e261509add5))
- *(yes)* Skip prompts and select first value - ([286743e](https://github.com/QaidVoid/soar/commit/286743e60c900a915fd6821ff47e13a66ceaf234))

### 🐛 Bug Fixes

- *(download)* Don't hold downloads in memory - ([baf33d9](https://github.com/QaidVoid/soar/commit/baf33d997a8f2a75d965094aa129ad44348fc194))
- *(health)* Check fusermount3 and use fusermount as fallback - ([3cef007](https://github.com/QaidVoid/soar/commit/3cef007d12351c2226f1006961795b7a6a4f4ed8))
- *(image)* Fix image rendering - ([b190bd0](https://github.com/QaidVoid/soar/commit/b190bd0eaa09fd2357939fd0986e62d94fcfcb4a))
- *(package)* Fix multi-repo install handling - ([8654fbb](https://github.com/QaidVoid/soar/commit/8654fbbc4c84c7f632f9e971732f60b960c01fd9))
- *(remove)* Improve package removal - ([3f0307a](https://github.com/QaidVoid/soar/commit/3f0307aab929ed83e2f602cf33763162095cd343))
- *(update)* Fix update progressbar - ([948a42e](https://github.com/QaidVoid/soar/commit/948a42eab471a6dde413636ba0b8c0933e7d47c0))

### 🚜 Refactor

- *(health)* Separate user namespaces and fuse issues - ([4b7fd4f](https://github.com/QaidVoid/soar/commit/4b7fd4f9219ce93a8b7612b38f1d68cf38b5ee0d))
- *(image)* Reduce image handling complexity - ([39e9c1b](https://github.com/QaidVoid/soar/commit/39e9c1b3e97a6c628abe5d092adafba37ff30b9d))
- *(list)* Sort list output - ([2c8d894](https://github.com/QaidVoid/soar/commit/2c8d8945ad80d4578d815b72b5791fd111257f26))
- *(project)* Minor refactor - ([0b0bd06](https://github.com/QaidVoid/soar/commit/0b0bd06811fbe3d7a91d6e46a5b2598a4ffe5957))

### 📚 Documentation

- *(README)* Fix installation instructions - ([b2fc746](https://github.com/QaidVoid/soar/commit/b2fc74664da9463a82d1f445d1560c28d7134f66))
- *(mdbook)* Initialize documentation - ([6fa129b](https://github.com/QaidVoid/soar/commit/6fa129b5107ad7bd6402399e251a99ac0997301a))

### ⚙️ Miscellaneous Tasks

- *(script)* Update install script - ([a18cba3](https://github.com/QaidVoid/soar/commit/a18cba3092c892173d00551796d1b8c489cf8324))
- *(script)* Add install script - ([7bea339](https://github.com/QaidVoid/soar/commit/7bea3393b1d9f6ada476b9f3b55b875051ef8f6f))
- *(workflow)* Remove existing nightly before publishing new - ([e1171af](https://github.com/QaidVoid/soar/commit/e1171af85b6816c512cdf1ab91c01580ba5195a8))


## [0.3.1](https://github.com/QaidVoid/soar/compare/v0.3.0..v0.3.1) - 2024-10-26

### 🐛 Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "soar"
version = "0.3.1"
version = "0.4.0"
authors = ["Rabindra Dhakal <[email protected]>"]
description = "A modern package manager for Linux"
license = "MIT"
Expand Down
14 changes: 2 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ main() {
printf "%s" "$(pwd)"
}

get_latest_version() {
latest_version=$($DOWNLOAD_TOOL "https://api.github.com/repos/QaidVoid/soar/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')
if [ -z "$latest_version" ]; then
echo "Error: Could not determine latest version"
exit 1
fi
printf "%s" "$latest_version"
}

# Function to download and install
install_soar() {
DOWNLOAD_TOOL=$(check_download_tool)
Expand All @@ -98,10 +89,9 @@ main() {
if [[ "$SOAR_VERSION" == *"nightly"* ]]; then
RELEASE_URL="https://github.com/QaidVoid/soar/releases/download/nightly/soar-nightly-$ARCH-linux"
elif [[ "$SOAR_VERSION" == *"latest"* ]]; then
SOAR_VERSION=$(get_latest_version)
RELEASE_URL="https://github.com/QaidVoid/soar/releases/latest/download/soar-$SOAR_VERSION-$ARCH-linux"
RELEASE_URL="https://github.com/QaidVoid/soar/releases/latest/download/soar-$ARCH-linux"
else
RELEASE_URL="https://github.com/QaidVoid/soar/releases/download/v$SOAR_VERSION/soar-$SOAR_VERSION-$ARCH-linux"
RELEASE_URL="https://github.com/QaidVoid/soar/releases/download/v$SOAR_VERSION/soar-$ARCH-linux"
fi
echo $RELEASE_URL

Expand Down

0 comments on commit 5cc4559

Please sign in to comment.