Upload release with artifact on tag (#225)

This commit is contained in:
Matt
2021-01-10 11:35:10 -08:00
committed by GitHub
parent 0a4dcd17e0
commit 69d2499e1a

View File

@@ -7,6 +7,8 @@ name: CI
on:
push:
branches: [ master ]
tags:
- '*'
pull_request:
branches: [ master ]
@@ -104,11 +106,6 @@ jobs:
pip install sphinx sphinx_rtd_theme sphinx-tabs sphinxext-opengraph doc8
pip install -r requirements.txt
- name: Install LaTeX and other system dependencies
run: |
sudo apt update
sudo apt install -y texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra latexmk texlive-lang-greek texlive-luatex texlive-xetex texlive-fonts-extra dvipng graphviz
- name: Check the docs
run: |
make linkcheck
@@ -123,7 +120,6 @@ jobs:
with:
name: built-docs
path: build/html
build-package:
needs: [build-client, build-server, build-offline-docs]
@@ -210,4 +206,17 @@ jobs:
- run: |
chmod +x gradlew
./gradlew spotlessCheck
release:
if: startsWith(github.ref, 'refs/tags/')
needs: [build-package]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: jar
- uses: softprops/action-gh-release@v1
with:
files: '**/*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}