mirror of
https://github.com/How-To-Build-a-Commons/HowToBuildACommonsWorkbooks.git
synced 2026-04-19 16:51:04 +00:00
Initial commit
This commit is contained in:
commit
2297b34378
5 changed files with 59 additions and 0 deletions
43
.github/workflows/main.yml
vendored
Normal file
43
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: "Release"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
|
||||
convert_via_pandoc:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout repository and submodules
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- run: sudo apt install pandoc texlive-latex-extra
|
||||
- run: wget https://github.com/jgm/pandoc/releases/download/3.1.7/pandoc-3.1.7-1-amd64.deb
|
||||
- run: sudo dpkg -i pandoc-3.1.7-1-amd64.deb
|
||||
- run: echo $PWD
|
||||
- run: ls -al ./
|
||||
- run: ls -al ../
|
||||
- run: pandoc --standalone --self-contained --embed-resources --from markdown --output=BancroftRobodogsNotebook.pdf README.md
|
||||
- run: ls -al .
|
||||
- name: release
|
||||
uses: actions/create-release@v1
|
||||
id: create_release
|
||||
with:
|
||||
draft: false
|
||||
prerelease: false
|
||||
release_name: ${{ steps.get_version.outputs.VERSION }}
|
||||
tag_name: ${{ github.ref }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Upload PDF
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: BancroftRobodogsNotebook.pdf
|
||||
asset_name: BancroftRobodogsNotebook.pdf
|
||||
asset_content_type: application/binary
|
||||
Loading…
Add table
Add a link
Reference in a new issue