Promote fluence-cli #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Promote fluence-cli | |
on: | |
workflow_dispatch: | |
inputs: | |
channel: | |
description: "Promote version to channel" | |
type: choice | |
options: | |
- main # latest build from main branch | |
- stage # version compatible with current stage env | |
- testnet # version compatible with current testnet env | |
- stable # latest stable version (same as mainnet) | |
- mainnet # version compatible with current mainnet env | |
- unstable # version used by all CI jobs; TODO: publish automatically on every release | |
required: true | |
env: | |
CI: true | |
FORCE_COLOR: true | |
AWS_REGION: "eu-west-1" | |
AWS_S3_FORCE_PATH_STYLE: true | |
jobs: | |
promote: | |
name: "Promote fcli" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: Checkout fluence-cli | |
uses: actions/checkout@v4 | |
with: | |
repository: fluencelabs/cli | |
- name: Import secrets | |
uses: hashicorp/[email protected] | |
id: secrets | |
with: | |
url: https://vault.fluence.dev | |
path: jwt/github | |
role: ci | |
method: jwt | |
jwtGithubAudience: "https://github.com/fluencelabs" | |
jwtTtl: 300 | |
exportToken: false | |
secrets: | | |
kv/ci/fcli-binaries id | AWS_ACCESS_KEY_ID ; | |
kv/ci/fcli-binaries secret | AWS_SECRET_ACCESS_KEY | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.10.0" | |
registry-url: "https://npm.fluence.dev" | |
cache: "yarn" | |
- run: yarn install | |
working-directory: packages/cli/package | |
- name: Promote fluence-cli | |
working-directory: packages/cli/package | |
run: yarn oclif promote -t linux-x64,darwin-x64,darwin-arm64 --version "$(jq .[] -r ../../../.github/release-please/manifest.json)" --sha "$(git rev-parse --short HEAD)" --channel ${{ inputs.channel }} --no-xz --indexes | |
- name: Promote fluence-cli windows | |
working-directory: packages/cli/package | |
run: yarn oclif promote -t win32-x64 --version "$(jq .[] -r ../../../.github/release-please/manifest.json)" --sha "$(git rev-parse --short HEAD)" --channel ${{ inputs.channel }} --no-xz --win --indexes |