README: INF_VERSION >= 1.30: declare ProcessLibraryCon...() for SEC m… #5
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
name: 'Gitbook Action Build' | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout action | |
uses: actions/checkout@v2 | |
- name: Get Branch | |
run: | | |
raw=$(git branch -r --contains ${{ github.ref }}) | |
branch=${raw/ origin\/} | |
pubdir=${branch/master/draft} | |
pubdir=${pubdir////-} | |
echo "ON_PUSH_BRANCH_NAME=$branch" >> $GITHUB_ENV | |
echo "ON_PUSH_PUBDIR=$pubdir" >> $GITHUB_ENV | |
- name: Gitbook Action | |
uses: zanderzhao/[email protected] | |
with: | |
token: ${{secrets.GITBOOK_ACTION_PERSONAL_TOKEN}} | |
source_branch: ${{env.ON_PUSH_BRANCH_NAME}} | |
publish_branch: gh-pages | |
publish_dir: ${{env.ON_PUSH_PUBDIR}} | |
publish_remove_last_build: true | |
gitbook_pdf: true | |
gitbook_pdf_dir: / | |
gitbook_pdf_name: ${{ github.event.repository.name }}-${{env.ON_PUSH_PUBDIR}} | |
gitbook_epub: true | |
gitbook_epub_dir: / | |
gitbook_epub_name: ${{ github.event.repository.name }}-${{env.ON_PUSH_PUBDIR}} | |
gitbook_mobi: true | |
gitbook_mobi_dir: / | |
gitbook_mobi_name: ${{ github.event.repository.name }}-${{env.ON_PUSH_PUBDIR}} |