-
Notifications
You must be signed in to change notification settings - Fork 54
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
Showing
8,841 changed files
with
42,580 additions
and
33,348 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,18 @@ | ||
name: Publish docs via GitHub Pages | ||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
|
||
- name: Deploy docs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CUSTOM_DOMAIN: dbm.incubator.edurt.io | ||
CONFIG_FILE: docs/mkdocs.yml | ||
EXTRA_PACKAGES: build-base |
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,47 +1,75 @@ | ||
name: Publish New Release On Mac | ||
name: Publish New Release | ||
|
||
on: | ||
pull_request: | ||
branch: | ||
- 'master' | ||
|
||
jobs: | ||
build-and-deploy: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
tag_name: 1.7.0 | ||
release_name: 1.7.0 | ||
draft: false | ||
prerelease: false | ||
outputs: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
|
||
build-mac: | ||
runs-on: macos-latest | ||
needs: release | ||
steps: | ||
|
||
# Step 1: download the source code (pull the code from CI / CD to your local) | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
# Step 2: package and build | ||
- name: Build | ||
uses: actions/setup-node@master | ||
- run: npm install yarn | ||
- run: yarn install | ||
- run: yarn run build | ||
- run: tar -zcf dbm-mac.tar.gz ./build/mac/dbm.app | ||
|
||
# Step 3: release | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
tag_name: 1.6.0 | ||
release_name: 1.6.0 | ||
draft: false | ||
prerelease: false | ||
|
||
# Step 4: upload the build result to release (upload the packaged tgz to release) | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dbm-mac.tar.gz | ||
asset_name: dbm-mac.tar.gz | ||
asset_content_type: application/x-tg | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Build | ||
uses: actions/setup-node@master | ||
- run: npm install yarn | ||
- run: yarn install | ||
- run: yarn run build | ||
- run: tar -zcf dbm-mac.tar.gz ./build/mac/dbm.app | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
upload_url: ${{ needs.release.outputs.upload_url }} | ||
asset_path: ./dbm-mac.tar.gz | ||
asset_name: dbm-mac.tar.gz | ||
asset_content_type: application/x-tg | ||
|
||
build-win: | ||
runs-on: windows-latest | ||
needs: release | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
||
- name: Build | ||
uses: actions/setup-node@master | ||
- run: npm install yarn | ||
- run: yarn install | ||
- run: yarn run build:win | ||
- run: tar -cvf dbm-win.tar.gz ./build/dbm*.exe | ||
|
||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.TOKEN }} | ||
with: | ||
upload_url: ${{ needs.release.outputs.upload_url }} | ||
asset_path: ./dbm-win.tar.gz | ||
asset_name: dbm-win.tar.gz | ||
asset_content_type: application/x-tg |
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ thumbs.db | |
yarn.lock | ||
|
||
.idea/ | ||
|
||
docs/site/ |
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,86 @@ | ||
# Copyright (c) 2016-2021 Martin Donath <[email protected]> | ||
|
||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to | ||
# deal in the Software without restriction, including without limitation the | ||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
# sell copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
|
||
# The above copyright notice and this permission notice shall be included in | ||
# all copies or substantial portions of the Software. | ||
|
||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
# IN THE SOFTWARE. | ||
|
||
FROM python:3.9.2-alpine3.13 | ||
|
||
# Build-time flags | ||
ARG WITH_PLUGINS=true | ||
|
||
# Environment variables | ||
ENV PACKAGES=/usr/local/lib/python3.9/site-packages | ||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
|
||
# Set build directory | ||
WORKDIR /tmp | ||
|
||
# Copy files necessary for build | ||
COPY material material | ||
COPY MANIFEST.in MANIFEST.in | ||
COPY package.json package.json | ||
COPY README.md README.md | ||
COPY requirements.txt requirements.txt | ||
COPY setup.py setup.py | ||
|
||
# Perform build and cleanup artifacts and caches | ||
RUN \ | ||
apk upgrade --update-cache -a \ | ||
&& \ | ||
apk add --no-cache \ | ||
git \ | ||
git-fast-import \ | ||
openssh \ | ||
&& \ | ||
apk add --no-cache --virtual .build \ | ||
gcc \ | ||
musl-dev \ | ||
&& \ | ||
pip install --no-cache-dir . \ | ||
&& \ | ||
if [ "${WITH_PLUGINS}" = "true" ]; then \ | ||
pip install --no-cache-dir \ | ||
"mkdocs-minify-plugin>=0.3" \ | ||
"mkdocs-redirects>=1.0"; \ | ||
fi \ | ||
&& \ | ||
apk del .build \ | ||
&& \ | ||
for theme in mkdocs readthedocs; do \ | ||
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \ | ||
ln -s \ | ||
${PACKAGES}/material \ | ||
${PACKAGES}/mkdocs/themes/$theme; \ | ||
done \ | ||
&& \ | ||
rm -rf /tmp/* /root/.cache \ | ||
&& \ | ||
find ${PACKAGES} \ | ||
-type f \ | ||
-path "*/__pycache__/*" \ | ||
-exec rm -f {} \; | ||
|
||
# Set working directory | ||
WORKDIR /docs | ||
|
||
# Expose MkDocs development server port | ||
EXPOSE 8000 | ||
|
||
# Start development server by default | ||
ENTRYPOINT ["mkdocs"] | ||
CMD ["serve", "--dev-addr=0.0.0.0:8000"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.