Skip to content

Commit

Permalink
Fix GitHub actions release
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Berkun-Drevnig committed Jan 2, 2020
1 parent 4faa380 commit 8131533
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

25 changes: 20 additions & 5 deletions .github/workflows/release.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
name: CI

on:
push:
branches:
- master
on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build
run: |
sudo apt-get update
sudo apt-get install --yes texlive-latex-extra texlive-fonts-recommended lmodern pandoc make
make
- uses: actions/upload-artifact@v1
with:
name: resume.pdf
path: build/resume.pdf

release:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v1
with:
Expand All @@ -26,7 +41,7 @@ jobs:
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: ${{steps.date.outputs.date}}-${{ steps.sha.outputs.sha }}
RELEASE_NAME: ${{ steps.date.outputs.date }}-${{ steps.sha.outputs.sha }}
with:
tag_name: ${{ env.RELEASE_NAME }}
release_name: ${{ env.RELEASE_NAME }}
Expand Down

0 comments on commit 8131533

Please sign in to comment.