Skip to content

Commit 888bfdf

Browse files
committed
feat: add github action to automatically deploy on main branch
1 parent 42a3686 commit 888bfdf

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/docs.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ on:
55
branches:
66
- main # or your default branch name
77

8+
# Add this permissions block
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
814
jobs:
915
build-and-deploy:
1016
runs-on: ubuntu-latest
17+
environment:
18+
name: github-pages
19+
url: ${{ steps.deployment.outputs.page_url }}
1120

1221
steps:
1322
- name: Checkout repository
@@ -27,7 +36,7 @@ jobs:
2736
run: pnpm install
2837

2938
- name: Build docs
30-
run: pnpm docs
39+
run: pnpm run docs
3140

3241
- name: Setup Pages
3342
uses: actions/configure-pages@v4

src/alexSDK.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class AlexSDK {
4848
* This function returns an array of TokenInfo objects, each containing detailed
4949
* information about a supported swappable currency.
5050
*
51-
* @returns {Promise<TokenInfo[]>} - A promise that resolves to an array of
51+
* @returns {Promise<TokenInfo[]>} - A promise that resolves to an array of
5252
* `TokenInfo` objects representing the currencies available for swaps.
5353
*/
5454
fetchSwappableCurrency(): Promise<TokenInfo[]> {
@@ -60,7 +60,7 @@ export class AlexSDK {
6060
}
6161

6262
/**
63-
* This function returns all possible routes for swapping between two specified currencies.
63+
* This function returns all possible routes for swapping between two specified currencies.
6464
* It returns an array of AMMRoute, representing possible swap routes.
6565
*
6666
* @param {Currency} from - The currency to swap from.
@@ -197,8 +197,8 @@ export class AlexSDK {
197197
}
198198

199199
/**
200-
* This function fetches the current balances of all supported tokens for a specified STX address.
201-
* It returns an object where the keys are the currency identifiers (as defined in the Currency enum)
200+
* This function fetches the current balances of all supported tokens for a specified STX address.
201+
* It returns an object where the keys are the currency identifiers (as defined in the Currency enum)
202202
* and the values are the corresponding balances as bigint values.
203203
*
204204
* @param {string} stxAddress - The Stacks (STX) address to retrieve the balances for.

0 commit comments

Comments
 (0)