Skip to content

Commit

Permalink
Merge pull request #1 from DSI-Ville-Noumea/github-actions
Browse files Browse the repository at this point in the history
migrate from travis to github actions
  • Loading branch information
feliixx authored Feb 12, 2020
2 parents 4bafe32 + e7254b2 commit 8ccdd2b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 33 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish

on:
push:
tags:
- '*'

env:
pandoc_version: 1.16.0.2

jobs:
publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install pandoc
run: |
wget https://github.com/jgm/pandoc/releases/download/${pandoc_version}/pandoc-${pandoc_version}-1-amd64.deb
sudo dpkg -i pandoc-${pandoc_version}-1-amd64.deb
sudo apt-get update -qq
sudo apt-get install texlive-xetex texlive-full texlive-fonts-recommended texlive-fonts-extra texlive-latex-base texlive-latex-extra lmodern
- name: Generate PDF and HTML files
run: make
- name: Upload PDF file to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/pdf/doc_utilisateur.pdf
asset_name: doc_utilisateur.pdf
tag: ${{ github.ref }}
- name: Upload HTML file to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/html/doc_utilisateur.html
asset_name: doc_utilisateur.html
tag: ${{ github.ref }}
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

0 comments on commit 8ccdd2b

Please sign in to comment.