Skip to content

Create myyamlfile.yml #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/myyamlfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Produce Presentation Content'
on:
push:
branches:
- main
jobs:
build-pptx:
name: 'Build PowerPoint Presentation'
runs-on: ubuntu-latest
container:
image: seesharprun/pandoc-build
steps:
- name: 'Checkout Code'
uses: actions/checkout@v2
- name: 'Run Pandoc Builds'
run: ls | grep '.md' | xargs basename -s '.md' | xargs -I % sh -c "pandoc %.md --standalone --slide-level=3 --reference-doc=../.production/template.pptx --variable=monofont:'Cascadia Code' --output %-v${{ github.run_number }}.pptx"
working-directory: ./presentations
- name: 'Upload Presentation Artifacts'
uses: actions/upload-artifact@v2
with:
name: presentations
path: ./presentations/*.pptx
release-content:
name: 'Create GitHub Release'
runs-on: ubuntu-latest
needs: [ build-pptx ]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: 'Download Presentation Artifacts'
uses: actions/download-artifact@v2
with:
name: presentations
- name: 'Create GitHub Release'
uses: softprops/action-gh-release@v1
with:
files: ./**/*.pptx
tag_name: v${{ github.run_number }}
name: Release V${{ github.run_number }}