@@ -20,25 +20,39 @@ A GitHub Action to install and configure [`quantum-cli`](https://cli.planetary-q
2020
2121## Inputs
2222
23- | Input | Required | Description |
24- | -------| ----------| -------------|
25- | ` username ` | Yes | Your Quantum username |
26- | ` password ` | Yes | Your Quantum password |
23+ You must provide ** either** ` api-key ` ** or** both ` username ` and ` password ` . You cannot use both methods together.
24+
25+ | Input | Description |
26+ | -------| -------------|
27+ | ` api-key ` | Your Quantum API key (recommended) |
28+ | ` username ` | Your Quantum username (** deprecated** , use ` api-key ` instead) |
29+ | ` password ` | Your Quantum password (** deprecated** , use ` api-key ` instead) |
2730
2831## Usage
2932
3033For detailed documentation on the ` quantum-cli ` , please refer to our [ docs] ( https://docs.planetary-quantum.com/ ) .
3134
32- ### Basic example
35+ ### Using API key (recommended)
36+
37+ ``` yaml
38+ steps :
39+ - uses : hostwithquantum/setup-quantum-cli@main
40+ with :
41+ api-key : ${{ secrets.QUANTUM_API_KEY }}
42+ - run : quantum-cli auth status
43+ ` ` `
44+
45+ ### Using username/password (deprecated)
46+
47+ > **Warning**: username/password authentication is deprecated. Please migrate to ` api-key`.
3348
3449` ` ` yaml
3550steps:
3651 - uses: hostwithquantum/setup-quantum-cli@main
3752 with:
3853 username: ${{ secrets.QUANTUM_USERNAME }}
3954 password: ${{ secrets.QUANTUM_PASSWORD }}
40-
41- - run : quantum-cli validate
55+ - run: quantum-cli auth status
4256` ` `
4357
4458# ## Full workflow example
@@ -57,13 +71,12 @@ jobs:
5771 - uses: actions/checkout@v6
5872 - uses: hostwithquantum/setup-quantum-cli@main
5973 with:
60- username : ${{ secrets.QUANTUM_USERNAME }}
61- password : ${{ secrets.QUANTUM_PASSWORD }}
74+ api-key: ${{ secrets.QUANTUM_API_KEY }}
6275 - run: quantum-cli auth status
6376 - run: quantum-cli stack deploy
6477 env:
6578 QUANTUM_ENDPOINT: my-cluster
66- QUANTUM_SATCK : my-app
79+ QUANTUM_STACK : my-app
6780` ` `
6881
6982# ## Windows example
@@ -76,15 +89,18 @@ jobs:
7689 - uses: actions/checkout@v6
7790 - uses: hostwithquantum/setup-quantum-cli@main
7891 with:
79- username : ${{ secrets.QUANTUM_USERNAME }}
80- password : ${{ secrets.QUANTUM_PASSWORD }}
92+ api-key: ${{ secrets.QUANTUM_API_KEY }}
8193 - run: quantum-cli.exe auth status
8294` ` `
8395
8496# # Environment variables
8597
8698The action sets the following environment variables for subsequent steps :
8799
100+ When using API key :
101+ - ` QUANTUM_API_KEY` — your API key
102+
103+ When using username/password (deprecated) :
88104- ` QUANTUM_USER` — your username
89105- ` QUANTUM_PASSWORD` — your password
90106
0 commit comments