Skip to content

Commit

Permalink
debian package
Browse files Browse the repository at this point in the history
  • Loading branch information
hituzi-no-sippo committed Sep 23, 2024
1 parent e4d329b commit 805659f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- "v*"

env:
DEBIAN_PACKAGE_PATH: tera-cli_linux_amd64.deb

jobs:
linux:
env:
Expand All @@ -28,13 +31,13 @@ jobs:
- name: Build debian package
shell: bash
run: |
cargo deb -p teracli -o "tera-cli_linux_amd64.deb"
cargo deb -p teracli -o "$DEBIAN_PACKAGE_PATH"
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: linux
path: "tera-cli_linux_amd64.deb"
path: ${{ env.DEBIAN_PACKAGE_PATH }}

create_draft:
needs: ["linux"]
Expand Down Expand Up @@ -148,7 +151,7 @@ jobs:
archive: tera-cli-$target
# SHA256 is used for Homebrew Formula
# https://docs.brew.sh/Cask-Cookbook#stanza-sha256
checksum: SHA256,SHA512
checksum: sha256,sha512
token: ${{ secrets.GITHUB_TOKEN }}
- name: Output SHA256
id: output-sha256
Expand All @@ -168,11 +171,11 @@ jobs:
uses: actions/download-artifact@v4
with:
name: linux
path: "tera-cli_linux_amd64.deb"
path: ${{ env.DEBIAN_PACKAGE_PATH }}

- naem: Install tera-cli
- name: Install tera-cli
run: |
dpkg -i tera-cli_linux_amd64.deb
dpkg -i "$DEBIAN_PACKAGE_PATH"
- name: Output Release Version for Formula templates
id: output-release-version
Expand Down

0 comments on commit 805659f

Please sign in to comment.