Skip to content

Instantly share code, notes, and snippets.

@ras0q
Last active October 25, 2022 08:53
Show Gist options
  • Select an option

  • Save ras0q/ee1f80e99f804a7a27e93dc3e1e23f78 to your computer and use it in GitHub Desktop.

Select an option

Save ras0q/ee1f80e99f804a7a27e93dc3e1e23f78 to your computer and use it in GitHub Desktop.

Revisions

  1. ras0q revised this gist Oct 25, 2022. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion pages.yml
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,11 @@ jobs:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - run: make marp
    - uses: docker://marpteam/marp-cli:latest
    with:
    args: -o ./dist/index.html ./docs/slide.md
    env:
    MARP_USER: root:root
    - uses: actions/upload-pages-artifact@v1
    with:
    path: dist
  2. ras0q created this gist Oct 25, 2022.
    33 changes: 33 additions & 0 deletions pages.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    name: pages

    on:
    push:
    branches:
    - 'main'
    paths:
    - 'docs/**'
    - '.github/workflows/pages.yml'
    pull_request:

    jobs:
    marp:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - run: make marp
    - uses: actions/upload-pages-artifact@v1
    with:
    path: dist
    deploy:
    needs:
    - marp
    permissions:
    pages: write
    id-token: write
    environment:
    name: github-pages
    url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
    - uses: actions/deploy-pages@v1
    id: deployment