-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8209cac
commit 153ba73
Showing
44 changed files
with
327 additions
and
159 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
|
@@ -8,33 +8,59 @@ jobs: | |
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
|
||
- run: mkdir -p build | ||
- run: cp -rp img build | ||
- run: npm i markdown-to-html-cli -g | ||
- run: markdown-to-html --output build/index.html | ||
- run: markdown-to-html -s docker/sourcegraph.md --output build/sourcegraph.html | ||
- run: markdown-to-html -s docker/rocket.chat/README.md --output build/rocket.chat.html | ||
- run: markdown-to-html -s docker/docker-compose.md --output build/docker-compose.html | ||
- run: markdown-to-html -s docker/elasticsearch.md --output build/elasticsearch.html | ||
- run: markdown-to-html -s docker/gitlab.md --output build/gitlab.html | ||
- run: markdown-to-html -s docker/harbor.md --output build/harbor.html | ||
- run: markdown-to-html -s docker/mattermost.md --output build/mattermost.html | ||
- run: markdown-to-html -s docker/mysql.md --output build/mysql.html | ||
- run: markdown-to-html -s docker/nginx.md --output build/nginx.html | ||
- run: markdown-to-html -s docker/nps.md --output build/nps.html | ||
- run: markdown-to-html -s docker/portainer.md --output build/portainer.html | ||
- run: markdown-to-html -s docker/postgres.md --output build/postgres.html | ||
- run: markdown-to-html -s docker/rancher.md --output build/rancher.html | ||
- run: markdown-to-html -s docker/redis.md --output build/redis.html | ||
- run: markdown-to-html -s docker/seaweedfs/README.md --output build/seaweedfs.html | ||
node-version: 16 | ||
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./build | ||
publish_dir: ./dist | ||
|
||
- name: Generate Contributors Images | ||
uses: jaywcjlove/github-action-contributors@main | ||
with: | ||
filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) | ||
output: dist/CONTRIBUTORS.svg | ||
avatarSize: 42 | ||
|
||
- name: Create Tag | ||
id: create_tag | ||
uses: jaywcjlove/[email protected] | ||
with: | ||
package-path: ./package.json | ||
|
||
- name: Deploy Website | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' | ||
commit_message: ${{steps.tag_version.outputs.tag}} ${{ github.event.head_commit.message }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./dist | ||
|
||
- name: Generate Changelog | ||
id: changelog | ||
uses: jaywcjlove/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot) | ||
filter: (^[\s]+?[R|r]elease)|(^[R|r]elease) | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
if: steps.create_tag.outputs.successful | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: ${{ steps.create_tag.outputs.version }} | ||
tag: ${{ steps.create_tag.outputs.version }} | ||
body: | | ||
Documentation ${{ steps.changelog.outputs.tag }}: https://raw.githack.com/jaywcjlove/vim-web/${{ steps.changelog.outputs.gh-pages-short-hash }}/index.html | ||
Comparing Changes: ${{ steps.changelog.outputs.compareurl }} | ||
${{ steps.changelog.outputs.changelog }} |
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 |
---|---|---|
@@ -1 +1,26 @@ | ||
dist | ||
node_modules | ||
test/out | ||
|
||
npm-debug.log* | ||
lerna-debug.log | ||
yarn-error.log | ||
package-lock.json | ||
|
||
.DS_Store | ||
.cache | ||
.vscode | ||
.idea | ||
|
||
*.bak | ||
*.tem | ||
*.temp | ||
#.swp | ||
*.*~ | ||
~*.* | ||
|
||
# IDEA | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ |
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 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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.