Skip to content

Commit

Permalink
Add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deka0106 committed May 25, 2020
1 parent 0b804c5 commit 2383624
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release

on:
push:
tags:
- "*"

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build pdf
uses: docker://deka0106/latexmk-ja
with:
args: latexmk paper.tex

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: true

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: out/paper.pdf
asset_name: paper.pdf
asset_content_type: application/pdf
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ VS Code Remote Developmentを用いたLaTeX環境

* [文章校正機能](https://github.com/deka0106/latex-container/tree/textlint)
* [PDFリリース機能](https://github.com/deka0106/latex-container/tree/release)

## PDFリリース機能

Tag付きでコミットするとPDFをビルド&リリースする機能

0 comments on commit 2383624

Please sign in to comment.