-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add manual release workflow. (#946)
- Loading branch information
1 parent
3b8cf0c
commit e96c788
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
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 }} |