Skip to content

Commit

Permalink
Merge 979e4eb into dafbcfe
Browse files Browse the repository at this point in the history
  • Loading branch information
qianmoQ authored Oct 8, 2021
2 parents dafbcfe + 979e4eb commit af30b92
Show file tree
Hide file tree
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.
18 changes: 18 additions & 0 deletions .github/workflows/publish-docs.yml
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
102 changes: 65 additions & 37 deletions .github/workflows/upload-to-release.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ thumbs.db
yarn.lock

.idea/

docs/site/
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,44 @@

---

Contributors:

![GitHub Contributors Image](https://contrib.rocks/image?repo=EdurtIO/dbm)

Basic:

![](https://visitor-badge.glitch.me/badge?page_id=dbm)
![version](https://img.shields.io/github/v/release/EdurtIO/dbm.svg)

![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/downloads-pre/EdurtIO/dbm/latest/total?style=flat-square)
![GitHub all releases](https://img.shields.io/github/downloads/EdurtIO/dbm/total?style=flat-square)

![GitHub branch checks state](https://img.shields.io/github/checks-status/EdurtIO/dbm/master?style=flat-square)
![GitHub Release Date](https://img.shields.io/github/release-date/EdurtIO/dbm?style=flat-square)

![GitHub commit activity](https://img.shields.io/github/commit-activity/y/EdurtIO/dbm?style=flat-square)
![GitHub contributors](https://img.shields.io/github/contributors-anon/EdurtIO/dbm?style=flat-square)
![GitHub last commit](https://img.shields.io/github/last-commit/EdurtIO/dbm?style=flat-square)

Workflow:

[![Build Status](https://travis-ci.com/EdurtIO/incubator-dbm.svg?branch=master)](https://www.travis-ci.com/github/EdurtIO/incubator-dbm)

![example workflow](https://github.com/EdurtIO/dbm/actions/workflows/upload-to-release.yml/badge.svg)

Development:

[![codebeat badge](https://codebeat.co/badges/a291d700-2d4b-435f-aa70-468bd1800d19)](https://codebeat.co/projects/github-com-edurtio-incubator-dbm-master)
[![With Electron](https://img.shields.io/badge/with-electron-blue.svg)](https://electronjs.org/)
[![With Vue](https://img.shields.io/badge/with-vue-blue.svg)](http://vuejs.org/)
[![With Jetbrains](https://img.shields.io/badge/with-Jetbrains-blue.svg)](https://www.jetbrains.com/)

GitHub:

[![GitHub stars](https://img.shields.io/github/stars/EdurtIO/incubator-dbm?style=for-the-badge)](https://github.com/EdurtIO/incubator-dbm/stargazers)
[![GitHub license](https://img.shields.io/github/license/EdurtIO/incubator-dbm?style=for-the-badge)](https://github.com/EdurtIO/incubator-dbm/blob/master/LICENSE)
[![GitHub issues](https://img.shields.io/github/issues/EdurtIO/incubator-dbm?style=for-the-badge)](https://github.com/EdurtIO/incubator-dbm/issues)
[![GitHub forks](https://img.shields.io/github/forks/EdurtIO/incubator-dbm?style=for-the-badge)](https://github.com/EdurtIO/incubator-dbm/network)
[![GitHub stars](https://img.shields.io/github/stars/EdurtIO/incubator-dbm?style=for-the-badge)](https://github.com/EdurtIO/incubator-dbm/stargazers)

Gitee:

Expand Down
86 changes: 86 additions & 0 deletions docs/Dockerfile
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"]
25 changes: 0 additions & 25 deletions docs/Gemfile

This file was deleted.

Loading

0 comments on commit af30b92

Please sign in to comment.