Skip to content

Commit

Permalink
Move to GitHub actions (#19)
Browse files Browse the repository at this point in the history
* Move to building with actions

* Update readme
  • Loading branch information
JamesDearlove authored Oct 16, 2021
1 parent d8171e5 commit 4a4159d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build LaTeX document

on:
push:
branches:
- main

jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2

- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: main.tex

- name: Bump version and tag main
id: tag_version
uses: mathieudutour/github-tag-action@v5.6
with:
default_bump: minor
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish document as release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
name: Cookbook ${{ steps.tag_version.outputs.new_tag }}
files: main.pdf
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# The UQCS Cookbook

A book of recipes curated by the [UQCS Slack](https://slack.uqcs.org.au) [#food channel](https://uqcs.slack.com/messages/food/).
A book of recipes curated by the UQCS #food channels. Join us [on Discord](https://discord.uqcs.org) to talk food and lots more with our community.

[View the compiled book](https://jenkins.uqcs.org.au/job/cookbook/lastSuccessfulBuild/artifact/main.pdf)
[View the compiled book](https://github.com/UQComputingSociety/cookbook/releases/latest/download/main.pdf)

[![Build Status](https://jenkins.uqcs.org.au/job/cookbook/badge/icon)](https://jenkins.uqcs.org.au/job/cookbook/)
[![Build Status](https://github.com/UQComputingSociety/cookbook/actions/workflows/build.yml/badge.svg)](https://github.com/UQComputingSociety/cookbook/actions/workflows/build.yml)

## Contributing

Expand Down

0 comments on commit 4a4159d

Please sign in to comment.