Skip to content

Publish GitHub Page with GitHub Action #32

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

Merged
merged 1 commit into from
Aug 2, 2021
Merged
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/deploy_github_page.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build-deploy-github-page

on:
push:
branches: [ master ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container: twtug/lkmpg

steps:
- uses: actions/checkout@v2
- name: Build
run: |
make html
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html
publish_branch: gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: texlive/texlive
container: twtug/lkmpg

steps:
- uses: actions/checkout@v2
- name: Build
run: make all
run: |
make all
make html
tar zcvf lkmpg-html.tar.gz ./html
- name: Delete old release asset
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
fail-if-no-assets: false
tag: latest
assets: lkmpg.pdf
assets: |
lkmpg.pdf
lkmpg-html.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
with:
files: lkmpg.pdf
files: |
lkmpg.pdf
lkmpg-html.tar.gz
tag_name: "latest"
prerelease: true