Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions rewritten + necessary code fix
- Loading branch information
Showing
8 changed files
with
251 additions
and
216 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,15 @@ | ||
name: periodic-broken-links-check | ||
|
||
on: | ||
schedule: | ||
- cron: '8 8 * * 1' | ||
|
||
jobs: | ||
broken-link-checker: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Broken link checker | ||
run: | | ||
export INPUT_URL="https://${GITHUB_REPOSITORY%/*}.github.io/${GITHUB_REPOSITORY##*/}" | ||
export INPUT_CMD_PARAMS="--buffer-size=8192 --concurrency=10 --exclude=mylabs.dev" | ||
wget -qO- https://raw.githubusercontent.com/ruzickap/action-broken-link-checker/v1/entrypoint.sh | bash |
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,87 @@ | ||
name: vuepress-build-check-deploy | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- .github/workflows/vuepress-build-check-deploy.yml | ||
- docs/** | ||
- .markdownlint.yml | ||
- .spelling | ||
- package.json | ||
- package-lock.json | ||
push: | ||
paths: | ||
- .github/workflows/vuepress-build-check-deploy.yml | ||
- docs/** | ||
- .markdownlint.yml | ||
- .spelling | ||
- package.json | ||
- package-lock.json | ||
|
||
jobs: | ||
markdownlint-check: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: markdownlint-cli | ||
uses: nosborn/github-action-markdown-cli@v1.1.1 | ||
with: | ||
files: . | ||
config_file: .markdownlint.yml | ||
|
||
markdown-spell-check: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Install markdown-spellcheck | ||
run: npm install -g markdown-spellcheck | ||
|
||
- name: Run mdspell | ||
run: find . -type f -name "*.md" -exec mdspell --ignore-numbers --ignore-acronyms --report --en-gb {} \; | ||
|
||
vuepress-build-check-deploy: | ||
runs-on: ubuntu-18.04 | ||
needs: | ||
- markdownlint-check | ||
- markdown-spell-check | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Node.js 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
|
||
- name: Install VuePress and build the document | ||
run: | | ||
npm install | ||
npm run build | ||
cp LICENSE docs/.vuepress/dist | ||
sed -e "s@(part-@(https://github.com/${GITHUB_REPOSITORY}/tree/master/docs/part-@" -e 's@.\/.vuepress\/public\/@./@' docs/README.md > docs/.vuepress/dist/README.md | ||
- name: Check broken links | ||
env: | ||
INPUT_URL: https://${{ github.event.repository.owner.name }}.github.io/${{ github.event.repository.name }} | ||
INPUT_PAGES_PATH: . | ||
INPUT_CMD_PARAMS: --buffer-size=8192 --concurrency=10 --skip-tls-verification --exclude=mylabs.dev | ||
run: | | ||
ln -s docs/.vuepress/dist ${{ github.event.repository.name }} | ||
wget -qO- https://raw.githubusercontent.com/ruzickap/action-broken-link-checker/v1/entrypoint.sh | bash | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v2.8.0 | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
env: | ||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
PUBLISH_BRANCH: gh-pages | ||
PUBLISH_DIR: ./docs/.vuepress/dist | ||
with: | ||
forceOrphan: true |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
name: yamllint | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
paths: | ||
- '**.yml' | ||
- '**.yaml' | ||
push: | ||
paths: | ||
- '**.yml' | ||
- '**.yaml' | ||
|
||
jobs: | ||
yamllint-check: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: yamllint | ||
uses: ibiqlik/action-yamllint@master | ||
with: | ||
file_or_dir: . |
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,3 @@ | ||
MD013: | ||
code_blocks: false | ||
tables: false |
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,7 @@ | ||
extends: default | ||
|
||
rules: | ||
# 80 chars should be enough, but don't fail if a line is longer | ||
line-length: | ||
max: 80 | ||
level: warning |
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.