Skip to content

Commit

Permalink
Switched over to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marsfan committed Feb 20, 2020
1 parent 75b0c60 commit fd84ef7
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 24 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/buildAndDeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build PDF for Release

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y texlive-xetex
- name: Build Document
run: xelatex Resume.tex

- name: Get Current DateTime
id: getdate
run: echo "::set-output name=dtVal::$(date +'%Y-%m-%d_%H.%M')"

- name: Create Release
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{steps.getdate.outputs.dtVal}}
release_name: Resume ${{steps.getdate.outputs.dtVal}}
draft: true
prerelease: false

- name: Add resume PDF
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Resume.pdf
asset_name: Resume.pdf
asset_content_type: application/pdf
22 changes: 22 additions & 0 deletions .github/workflows/testCompile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check For Errors
on:
push:
branches-ignore: # Do not check against the master branch, as this is already checked by the build and deploy script
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y texlive-xetex
- name: Build and Check Document
run: xelatex Resume.tex


24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit fd84ef7

Please sign in to comment.