Merge branch 'typed' #28
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: CI | |
on: | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v3 | |
- name: Create build dir | |
run: mkdir build | |
- name: Compile Manual | |
# TODO: run `make build/jediacademy_plugins_doc.pdf` instead, | |
# but that requires pdflatex to be installed | |
uses: dante-ev/latex-action@latest | |
with: | |
working_directory: build | |
root_file: ../jediacademy_plugins_doc.tex | |
- name: Package plugin | |
run: make build/jediacademy.zip | |
# we must move the nightly tag so the right source code gets attached to the release | |
# (in case users accidentally download that instead of the packaged add-on) | |
- name: Update nightly tag | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
github.rest.git.updateRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: "tags/nightly", | |
sha: context.sha | |
}) | |
- name: Release nightly | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: nightly | |
tag_name: nightly | |
prerelease: true | |
body: | | |
Automatic pre-release build. | |
The jediacademy.zip file can be installed using the button in Blender's add-on preferences. | |
Please consult jediacademy_plugins_doc.pdf for instructions on how to use the plugin. | |
Latest change: | |
${{github.event.commits[0].message}} | |
files: | | |
build/jediacademy_plugins_doc.pdf | |
build/jediacademy.zip |