Skip to content

Commit

Permalink
feat(ci): deb package on release (#518)
Browse files Browse the repository at this point in the history
Co-authored-by: Phoenix Himself <[email protected]>
  • Loading branch information
Mte90 and Ph0enixKM authored Nov 11, 2024
1 parent f4db980 commit 825f280
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ jobs:
pattern: artifacts-*
path: target/distrib/
merge-multiple: true

- name: Cargo Deb
run: |
cargo install cargo-deb
cargo deb --output="./target/distrib/amber-amd64.deb"
- name: Compile installer/uninstaller
run: |
TARGET_TRIPLE="$(rustc -Vv | awk '/^host/ { print $2 }')"
Expand All @@ -192,6 +195,7 @@ jobs:
# Parse out what we just built and upload it to scratch storage
echo "paths<<EOF" >> "$GITHUB_OUTPUT"
jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT"
echo "$PWD/target/distrib/amber-amd64.deb" >> "$GITHUB_OUTPUT"
echo "$PWD/target/distrib/install.sh" >> "$GITHUB_OUTPUT"
echo "$PWD/target/distrib/uninstall.sh" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
Expand Down
9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@
name = "amber"
version = "0.3.5-alpha"
edition = "2021"
repository = "https://github.com/Ph0enixKM/Amber"
repository = "https://github.com/amber-lang/Amber"
homepage = "https://amber-lang.com/"
description = "The Programming Language compiled to Bash."
rust-version = "1.79"

[package.metadata.deb]
maintainer = "Amber-Lang project"
license-file = "LICENSE.md"
copyright = "GPLv3"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down

0 comments on commit 825f280

Please sign in to comment.