-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 939 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Create Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- 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