This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
70 lines (56 loc) · 1.74 KB
/
continuous-integration-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
on: [push]
jobs:
ubuntu:
name: Build Jobson on Ubuntu
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
# install dependencies on the CI machine
- name: Install dependencies
run: |
cd $GITHUB_WORKSPACE && scripts/ubuntu_install-deps.sh
# ensure docker installed
- name: Ensure Docker works
run: docker --version
# build + test jobson
- name: Build + test jobson
run: |
cd $GITHUB_WORKSPACE && scripts/ubuntu_build.sh
# upload jar
- uses: actions/upload-artifact@v2
with:
path: jobson/target/jobson-*.jar
if-no-files-found: error
# upload JSON docs
- uses: actions/upload-artifact@v2
with:
path: jobson-swagger/target/jobson-swagger-*.json
if-no-files-found: error
# upload UI
- uses: actions/upload-artifact@v2
with:
path: jobson-ui/target/jobson-ui-*.tar.gz
if-no-files-found: error
# upload jobson user docs
- uses: actions/upload-artifact@v2
with:
path: jobson-docs/target/jobson-docs-*.tar.gz
if-no-files-found: error
# upload linux (not distro specific) tarball
- uses: actions/upload-artifact@v2
with:
path: jobson-nix/target/jobson-nix-*.tar.gz
if-no-files-found: error
# upload deb
- uses: actions/upload-artifact@v2
with:
path: jobson-deb/target/jobson_*.deb
if-no-files-found: error
# (if a tagged release): publish docs
- if: startsWith(github.ref, 'refs/tags/')
name: Upload Documentation to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: jobson-docs/target/html
# TODO: release