Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 committed Jun 27, 2024
1 parent d6023bf commit 6224ac1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish-bicep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ jobs:
run: go build .
- name: Download AWS specs from CloudControl
run: |
go run ./src/aws-type-downloader/main.go --output ./artifacts/types --clean
cd src/aws-type-downloader && go run main.go --output ../../artifacts/types --clean
- name: 'Initialize submodule'
run: |
git submodule update --init --recursive
npm ci && npm run build
- name: Generate Bicep extensibility types for AWS
run: npm run --prefix ./src/aws-type-generator start -- --input ../../artifacts/types --output ../../artifacts/bicep --release-version ${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }}
run: cd ../.. && npm run --prefix ./src/aws-type-generator start -- --input ../../artifacts/types --output ../../artifacts/bicep --release-version ${{ env.REL_VERSION == 'edge' && 'latest' || env.REL_VERSION }}
- name: Upload AWS Bicep types artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Once you have the prerequisites installed, you can build the repository with bel

1. Clone this repository
2. [Configure the AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)
3. Run `go run ./src/aws-type-downloader/main.go --output ./artifacts/types --clean`
3. Run `go run main.go --output ../../artifacts/types --clean` in the `src/aws-type-downloader` folder
4. Run `npm run --prefix ./src/aws-type-generator start -- --input ../../artifacts/types --output ../../artifacts/bicep`

Note: `npm run --prefix` does not preserve the current working directory, so the extra `../..` is needed.
Note: `npm run --prefix` does not preserve the current working directory, so the extra `../..` is needed.

go run main.go --output /Users/shruthikumar/Documents/project_radius/bicep-types-aws/artifacts/types --clean

0 comments on commit 6224ac1

Please sign in to comment.