mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-06 03:31:41 +00:00
Upload release with artifact on tag (#225)
This commit is contained in:
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
@@ -7,6 +7,8 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
@@ -104,11 +106,6 @@ jobs:
|
|||||||
pip install sphinx sphinx_rtd_theme sphinx-tabs sphinxext-opengraph doc8
|
pip install sphinx sphinx_rtd_theme sphinx-tabs sphinxext-opengraph doc8
|
||||||
pip install -r requirements.txt
|
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
|
- name: Check the docs
|
||||||
run: |
|
run: |
|
||||||
make linkcheck
|
make linkcheck
|
||||||
@@ -123,7 +120,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: built-docs
|
name: built-docs
|
||||||
path: build/html
|
path: build/html
|
||||||
|
|
||||||
|
|
||||||
build-package:
|
build-package:
|
||||||
needs: [build-client, build-server, build-offline-docs]
|
needs: [build-client, build-server, build-offline-docs]
|
||||||
@@ -210,4 +206,17 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew spotlessCheck
|
./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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user