-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #780 from aws-quickstart/feature/websitePublishOnR…
…elease New GitHub Actions - Auto Website Publish on Release, Link Checker, Stale PR Marker
- Loading branch information
Showing
4 changed files
with
105 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Release Website Publish' | ||
on: | ||
release: | ||
types: [published] | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- run: pip install mkdocs-material | ||
- run: npx typedoc --out docs/api lib/index.ts | ||
- run: mkdocs gh-deploy |
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,27 @@ | ||
{ | ||
"timeout": "5s", | ||
"retryOn429": true, | ||
"retryCount": 5, | ||
"fallbackRetryDelay": "30s", | ||
"aliveStatusCodes": [200, 206], | ||
"httpHeaders": [ | ||
{ | ||
"urls": ["https://help.github.com/"], | ||
"headers": { | ||
"Accept-Encoding": "zstd, br, gzip, deflate" | ||
} | ||
} | ||
], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": [ | ||
"localhost" | ||
] | ||
}, | ||
{ | ||
"pattern": [ | ||
"127.0.0.1" | ||
] | ||
} | ||
] | ||
} |
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,28 @@ | ||
name: 'Check Markdown links' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "**/*.md" | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "**/*.md" | ||
|
||
jobs: | ||
markdown-link-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16.x' | ||
- name: install markdown-link-check | ||
run: npm install -g [email protected] | ||
- name: markdown-link-check version | ||
run: npm list -g markdown-link-check | ||
- name: Run markdown-link-check on MD files | ||
run: find docs -name "*.md" | xargs -n 1 markdown-link-check -q -c .github/workflows/linkcheck.json |
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,33 @@ | ||
name: 'Stale issues & PR handler' | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@main | ||
id: stale | ||
with: | ||
ascending: true | ||
close-issue-message: 'Issue closed due to inactivity.' | ||
close-pr-message: 'Pull request closed due to inactivity.' | ||
days-before-close: 60 | ||
days-before-stale: 90 | ||
stale-issue-label: stale | ||
stale-pr-label: stale | ||
# Not stale if have this labels | ||
exempt-issue-labels: 'bug,enhancement,"feature request"' | ||
exempt-pr-labels: 'bug,enhancement' | ||
operations-per-run: 100 | ||
stale-issue-message: | | ||
This issue has been automatically marked as stale because it has been open 60 days | ||
with no activity. Remove stale label or comment or this issue will be closed in 10 days | ||
stale-pr-message: | | ||
This PR has been automatically marked as stale because it has been open 60 days | ||
with no activity. Remove stale label or comment or this PR will be closed in 10 days |