From 29e12c29338f857f4c430032b0f60f794445eb79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt?= Date: Mon, 11 Nov 2019 18:21:19 +0100 Subject: [PATCH 1/2] deploy slides with github actions --- .github/workflows/slides.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/slides.yml diff --git a/.github/workflows/slides.yml b/.github/workflows/slides.yml new file mode 100644 index 0000000..5b64d0b --- /dev/null +++ b/.github/workflows/slides.yml @@ -0,0 +1,37 @@ +on: + push: + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +name: Upload slides +jobs: + build: + name: Upload slides + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Pandoc Document Converter + uses: Ender-events/pandoc@master + with: + args: '-t beamer --pdf-engine=xelatex --template=./default.beamer --highlight-style=zenburn -s -V theme=metropolis -V fontsize=9pt -V monofont="DejaVu Sans Mono" -V monofontoptions=Scale=0.9 cours.md -o cours.pdf' + - name: Create Release + id: create_release + uses: actions/create-release@v1.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + asset_path: ./cours.pdf + asset_name: cours.pdf + asset_content_type: application/pdf From a6812e5bccad0f2661f285fb2b42c01e5854d4ba Mon Sep 17 00:00:00 2001 From: Benoit Gloria Date: Tue, 12 Nov 2019 15:38:29 +0100 Subject: [PATCH 2/2] ci: bump pandoc action to v1 --- .github/workflows/slides.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slides.yml b/.github/workflows/slides.yml index 5b64d0b..d3f2600 100644 --- a/.github/workflows/slides.yml +++ b/.github/workflows/slides.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout code uses: actions/checkout@master - name: Pandoc Document Converter - uses: Ender-events/pandoc@master + uses: Ender-events/pandoc@v1 with: args: '-t beamer --pdf-engine=xelatex --template=./default.beamer --highlight-style=zenburn -s -V theme=metropolis -V fontsize=9pt -V monofont="DejaVu Sans Mono" -V monofontoptions=Scale=0.9 cours.md -o cours.pdf' - name: Create Release