Skip to content

Commit

Permalink
build(release): set the channel by env var
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Oct 20, 2024
1 parent e1a896b commit be050c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- run: curl https://humanlog.dev/install_apictl.sh | bash
- run: ./script/create_version_artifacts.sh
env:
CHANNEL: "dev"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HMAC_KEY_ID: ${{ secrets.DEV_HMAC_KEY_ID }}
HMAC_PRIVATE_KEY: ${{ secrets.DEV_HMAC_PRIVATE_KEY }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- run: curl https://humanlog.io/install_apictl.sh | bash
- run: ./script/create_version_artifacts.sh
env:
CHANNEL: "main"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HMAC_KEY_ID: ${{ secrets.PROD_HMAC_KEY_ID }}
HMAC_PRIVATE_KEY: ${{ secrets.PROD_HMAC_PRIVATE_KEY }}
3 changes: 2 additions & 1 deletion script/create_version_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ function get_project_name() {
}

function get_channel() {
echo "latest"
local channel=${CHANNEL:-main}
echo ${channel}
}

function main() {
Expand Down

0 comments on commit be050c1

Please sign in to comment.