Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
piniom committed Mar 2, 2024
1 parent 909628a commit b262089
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create Release

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Docker
uses: actions/setup-docker@v2

- name: Build Docker Image
run: docker build -t nspyc-pandoc .

- name: Run Container and Generate PDF
run: docker run -v ${{ github.workspace }}/output:/data nspyc-pandoc

- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: $(grep 'subtitle:' convention.md | awk '{print $NF}')
release_name: $(grep 'subtitle:' convention.md | cut -d' ' -f 2-)
draft: false
prerelease: false

- name: Upload PDF as Release Asset
uses: actions/upload-artifact@v2
with:
name: convention.pdf
path: output/convention.pdf

0 comments on commit b262089

Please sign in to comment.