Skip to content

Commit

Permalink
Create release
Browse files Browse the repository at this point in the history
  • Loading branch information
LawrE18 committed Jul 21, 2021
1 parent df7d133 commit 1891d98
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- dev

jobs:
build_and_test:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@master
Expand All @@ -22,4 +22,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: bign
path: spec/bign.pdf
path: spec/bign.pdf
52 changes: 52 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy

on:
push:
tags:
- v*

jobs:
build:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.ref }}
- name: Build
uses: xu-cheng/latex-action@v2
with:
root_file: bign.tex
working_directory: spec/
args: -jobname=bign -pdf -file-line-error -halt-on-error -interaction=nonstopmode
- name: Upload pdf
uses: actions/upload-artifact@v2
with:
name: bign
path: spec/bign.pdf
deploy:
runs-on: [ubuntu-latest]
needs: [build]
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: bign
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload pdf asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bign.pdf
asset_name: bign.pdf
asset_content_type: application/pdf

0 comments on commit 1891d98

Please sign in to comment.