Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

feat: replace gitlab-ci by github actions #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pages deployment

on:
push:

jobs:
deploy:
runs-on: [ self-hosted, ubuntu-latest ]
steps:
- uses: actions/checkout@v2

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.10'

- run: mdbook build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/github' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out/html
73 changes: 73 additions & 0 deletions .github/workflows/pandoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Pandoc

on: push

jobs:
pdf:
runs-on: [ self-hosted, ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: create file list
id: files_list
run: |
mkdir output
echo "::set-output name=files::$(printf '"%s" ' src/??-*.md)"
- uses: docker://pandoc/latex:2.9
with:
args: >-
--resource-path src
--toc --toc-depth=2
--webtex
-f markdown --pdf-engine=xelatex --listings
--metadata-file=metadata.pandoc.yml
--output=output/result.pdf
${{ steps.files_list.outputs.files }}
- uses: actions/upload-artifact@master
with:
name: pdf
path: output
docx:
runs-on: [ self-hosted, ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: create file list
id: files_list
run: |
mkdir output
echo "::set-output name=files::$(printf '"%s" ' src/??-*.md)"
- uses: docker://pandoc/core:2.9
with:
args: >-
--resource-path src
--toc --toc-depth=2
--webtex
--metadata-file=metadata.pandoc.yml
--output=output/result.docx
${{ steps.files_list.outputs.files }}
- uses: actions/upload-artifact@master
with:
name: docx
path: output
epub:
runs-on: [ self-hosted, ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: create file list
id: files_list
run: |
mkdir output
echo "::set-output name=files::$(printf '"%s" ' src/??-*.md)"
- uses: docker://pandoc/core:2.9
with:
args: >-
--resource-path src
--toc --toc-depth=2
--webtex
--epub-cover-image=src/images/cover.png
--metadata-file=metadata.pandoc.yml
--output=output/result.epub
${{ steps.files_list.outputs.files }}
- uses: actions/upload-artifact@master
with:
name: epub
path: output
45 changes: 0 additions & 45 deletions .gitlab-ci.yml

This file was deleted.