-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See [CHANGELOG](https://github.com/aws/jsii/blob/bump/1.17.0/CHANGELOG.md)
- Loading branch information
1 parent
99a3413
commit 4aaed09
Showing
152 changed files
with
7,430 additions
and
7,150 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Workflow that publishes to the gh-pacges branch | ||
name: GitHub Pages | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
paths: [gh-pages/**] | ||
|
||
jobs: | ||
build: | ||
name: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Locate Caches | ||
id: cache-locations | ||
run: |- | ||
echo "::set-output name=pip-cache::$(python3 -m pip cache dir)" | ||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.cache-locations.outputs.pip-cache }} | ||
key: ${{ runner.os }}-${{ hashFiles('**/requirements-dev.txt') }} | ||
restore-keys: ${{ runner.os }}- | ||
- name: Install Dependencies | ||
run: |- | ||
pip install -r requirements-dev.txt | ||
working-directory: gh-pages | ||
- name: Build DocSite | ||
run: |- | ||
mkdir -p ${{ runner.temp }}/site | ||
mkdocs build \ | ||
--strict \ | ||
--site-dir ${{ runner.temp }}/site | ||
working-directory: gh-pages | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: doc-site | ||
path: ${{ runner.temp }}/site/ | ||
|
||
publish: | ||
name: Publish | ||
needs: build | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: gh-pages | ||
token: ${{ secrets.AUTO_APPROVE_GITHUB_TOKEN }} | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: doc-site | ||
path: ${{ runner.temp }}/site | ||
- name: Configure Git | ||
run: |- | ||
git config user.name "AWS CDK Automation" | ||
git config user.email "aws-cdk+automation@amazon.com" | ||
- name: Prepare Commit | ||
run: |- | ||
rsync --delete --exclude=.git --recursive ${{ runner.temp }}/site/ ./ | ||
touch .nojekyll | ||
git add . | ||
git diff --cached --exit-code >/dev/null || ( | ||
git commit -am 'docs: publish from ${{ github.sha }}' | ||
) | ||
- name: Push | ||
run: |- | ||
git push origin gh-pages:gh-pages |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Workflows pertaining to the jsii/superchain Docker image | ||
name: Push Jsii Runtime Go | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
push-go-runtime: | ||
name: Build and Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Set up Node 10 | ||
uses: actions/setup-node@v2.1.4 | ||
with: | ||
node-version: '10' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Install Dependencies | ||
run: |- | ||
# TypeScript project dependencies | ||
yarn install --frozen-lockfile | ||
- name: Align Versions | ||
run: |- | ||
./scripts/align-version.sh | ||
- name: Build dependencies | ||
run: |- | ||
yarn build \ | ||
--scope codemaker \ | ||
--scope @jsii/spec \ | ||
--scope @jsii/kernel \ | ||
--scope @jsii/runtime | ||
- name: Build | ||
run: |- | ||
yarn build \ | ||
--scope @jsii/go-runtime | ||
- name: Build Repo Directory | ||
id: build-repo-dir | ||
working-directory: ${{ github.workspace }}/packages/@jsii/go-runtime | ||
env: | ||
JSII_RUNTIME_REPO_NAME: ${{ secrets.JSII_RUNTIME_REPO_NAME }} | ||
JSII_RUNTIME_REPO_USERNAME: ${{ secrets.JSII_RUNTIME_REPO_USERNAME }} | ||
JSII_RUNTIME_REPO_TOKEN: ${{ secrets.AUTO_APPROVE_GITHUB_TOKEN }} | ||
run: |- | ||
REPO_DIR=$(mktemp -d) | ||
yarn ts-node ./build-tools/build-repo-dir.ts $REPO_DIR | ||
echo "::set-output name=repodir::$REPO_DIR" | ||
- name: Check for changes | ||
id: check-for-changes | ||
run: |- | ||
# Change directory manually as using `working-directory` doesn't seem to support using outputs from the previous step | ||
cd ${{ steps.build-repo-dir.outputs.repodir }} | ||
git fetch --depth=1 --quiet origin main | ||
git add . | ||
# Check for modifications in tracked files | ||
changed=$(git diff --name-only origin/main) | ||
if [-z "$changed"]; then | ||
echo "::set-output name=result::false" | ||
else | ||
echo "::set-output name=result::true" | ||
fi | ||
- name: Commit and Push | ||
if: steps.check-for-changes.outputs.result == 'true' | ||
env: | ||
JSII_RUNTIME_REPO_NAME: ${{ secrets.JSII_RUNTIME_REPO_NAME }} | ||
JSII_RUNTIME_REPO_USERNAME: ${{ secrets.JSII_RUNTIME_REPO_USERNAME }} | ||
JSII_RUNTIME_REPO_TOKEN: ${{ secrets.AUTO_APPROVE_GITHUB_TOKEN }} | ||
run: |- | ||
MESSAGE=$(git log -1 --format=%s) | ||
cd ${{ steps.build-repo-dir.outputs.repodir }} | ||
git config user.name "$JSII_RUNTIME_REPO_USERNAME" | ||
git config user.email "aws-cdk+automation@amazon.com" | ||
git commit -m "$MESSAGE" | ||
git push https://$JSII_RUNTIME_REPO_USERNAME:$JSII_RUNTIME_REPO_TOKEN@github.com/$JSII_RUNTIME_REPO_NAME.git main |
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
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
Oops, something went wrong.