Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gh-pages workflow #6

Merged
merged 1 commit into from
Sep 7, 2022
Merged
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
31 changes: 13 additions & 18 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
name: GitHub Pages

on:
push:
branches:
- main
release:
types:
- created

jobs:
job:
name: GitHub Pages
runs-on: ubuntu-latest
env:
MARP_DL_URL: https://github.com/marp-team/marp-cli/releases/download
MARP_VERSION: v0.22.0
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
MARP_BINARY=marp-cli-$MARP_VERSION-linux.tar.gz
wget $MARP_DL_URL/$MARP_VERSION/$MARP_BINARY
tar xf $MARP_BINARY
- name: Build slide deck
run: |
./marp docs/index.md -o docs/index.html
ls -alsh
- name: Deploy slide deck
- name: Build docs
uses: docker://marpteam/marp-cli:latest
with:
args: docs/index.md -o docs/index.html
env:
MARP_USER: root:root
- name: Rename docs
run: mv docs ${GITHUB_REF##*/}
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: docs
force_orphan: true
publish_dir: ${GITHUB_REF##*/}