Skip to content

Commit

Permalink
CI: Add manual release workflow. (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhslepicka committed May 4, 2024
1 parent 3b8cf0c commit e96c788
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bmad Ecosystem - Release Documentation

on:
release:
types: [published]

permissions:
contents: write

jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest]
steps:
# Check out the code from GitHub and all history
- uses: actions/checkout@v3

- name: Define Release Name
id: release_name
run: |
git fetch --prune --unshallow --tags
# call .github/scripts/next_version.sh to get the next version
# and set it as an output variable
echo "Next version: $(.github/scripts/next_version.sh)"
echo "version=$(.github/scripts/next_version.sh)" >> $GITHUB_OUTPUT
- name: Install dependencies
run: |
sudo apt update
sudo apt install texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra texlive-full texlive-science
- name: Build Bmad PDF Manual for Release - ${{ steps.release_name.outputs.version }}
run: |
cd ${GITHUB_WORKSPACE}/bmad/doc/
pdflatex bmad.tex
./makeindex.pl
- name: Build Tao PDF Manual for Release - ${{ steps.release_name.outputs.version }}
run: |
cd ${GITHUB_WORKSPACE}/tao/doc/
pdflatex tao.tex
./makeindex.pl
- name: Upload Release Assets - Bmad & Tao Manual
run: |
gh release upload ${{github.event.release.tag_name}} ${GITHUB_WORKSPACE}/tao/doc/bmad.pdf ${GITHUB_WORKSPACE}/tao/doc/tao.pdf
env:
GITHUB_TOKEN: ${{ github.TOKEN }}

0 comments on commit e96c788

Please sign in to comment.