Skip to content

Commit

Permalink
Merge pull request #417 from gliptak/actions1
Browse files Browse the repository at this point in the history
Add Github Actions build
  • Loading branch information
lvh authored Jun 22, 2021
2 parents 33883dd + 25b750a commit ddf2987
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ci
on:
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build image
run: docker build -t crypto101 docker/
- name: Generate documents
shell: 'script -q -e -c "bash {0}"'
run: |
set -x
set -e
docker run --rm -it -v ${{ github.workspace }}:/repo crypto101 ./build_release ./_release/
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: crypto101-en.epub
path: _release/crypto101-en.epub
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: crypto101-en.pdf
path: _release/crypto101-en.pdf
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: crypto101-en_html.tar.gz
path: _release/crypto101-en_html.tar.gz
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: crypto101-fr.epub
path: _release/crypto101-fr.epub
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: crypto101-fr.pdf
path: _release/crypto101-fr.pdf
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: crypto101-fr_html.tar.gz
path: _release/crypto101-fr_html.tar.gz
2 changes: 1 addition & 1 deletion src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run_command(*args):


version = run_command("git", "rev-parse", "--short", "HEAD")
release = run_command("git", "describe")
release = run_command("git", "describe", "--always")

# i18n configuration
locale_dirs = ["locale/"]
Expand Down

0 comments on commit ddf2987

Please sign in to comment.