-
Notifications
You must be signed in to change notification settings - Fork 29
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 #769 from lmorg/develop
v5.3
- Loading branch information
Showing
68 changed files
with
1,654 additions
and
952 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,97 @@ | ||
name: Deploy Dev Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- website | ||
paths: | ||
- "**/*.md" | ||
- "**/*.yaml" | ||
- "**/*.tmpl" | ||
- "**/*.ts" | ||
- "**/*.scss" | ||
- "**/*.png" | ||
- "**/*.jpeg" | ||
- "**/*.gif" | ||
- "**/*.svg" | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
GO_VERSION: "1.21" | ||
|
||
jobs: | ||
Deploy-Docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
# if your docs needs submodules, uncomment the following line | ||
# submodules: true | ||
|
||
- name: Setup Go ${{ ENV.GO_VERSION }} | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ ENV.GO_VERSION }} | ||
|
||
- name: Install Docgen | ||
run: | | ||
go build -v github.com/lmorg/murex/utils/docgen | ||
- name: Build Markdown Docs | ||
env: | ||
DOCGEN_TARGET: vuepress | ||
RUN_NUMBER: ${{ github.run_number }} | ||
COMMITHASHSHORT: ${{ github.run_number }} | ||
run: | | ||
./docgen -panic -warning -config gen/docgen.yaml | ||
mv -v *.md *.svg docs/ | ||
mv -v gen/vuepress docs/.vuepress | ||
echo Lower case documents... | ||
for f in $(find docs -type f -regex '.*?/[-_A-Z]+\..*'); do | ||
mv -v "$f" "$(echo $f | tr '[A-Z]' '[a-z]')" | ||
done | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
run_install: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
- name: Build Docs | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
pnpm run docs:build | ||
> docs/.vuepress/dist/.nojekyll | ||
#- name: Download fontawesome | ||
# env: | ||
# FONT_VERSION: "6.5.1" | ||
# FONT_PATH: "gen/vuepress/public" | ||
# # docs/.vuepress/dist | ||
# run: |- | ||
# wget https://use.fontawesome.com/releases/v${FONT_VERSION}/fontawesome-free-${FONT_VERSION}-web.zip -O ${FONT_PATH}/fontawesome.zip | ||
# unzip ${FONT_PATH}/fontawesome.zip -d ${FONT_PATH} | ||
# mv ${FONT_PATH}/fontawesome-free-${FONT_VERSION}-web ${FONT_PATH}/fontawesome | ||
# rm ${FONT_PATH}/fontawesome.zip | ||
|
||
- name: Deploy Docs | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET }} | ||
AWS_DEFAULT_REGION: eu-west-1 | ||
AWS_DEFAULT_OUTPUT: json | ||
run: | | ||
aws s3 sync docs/.vuepress/dist s3://murex.rocks/develop --exclude "*.md" --no-progress | ||
aws cloudfront create-invalidation --distribution-id "${{ secrets.CLOUDFRONT_DISTRIBUTION_ID_DEV }}" --paths "/*" | ||
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ murex.upx | |
/docgen.exe | ||
bin/ | ||
VERSION | ||
deleteme.db | ||
|
||
# WebAssembly | ||
murex.wasm | ||
|
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.