test #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |