-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (46 loc) · 1.39 KB
/
master.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
name: master
on:
push:
branches: [master]
tags: ["*"]
jobs:
build:
runs-on: ubuntu-latest
container:
image: 'pityka/base-ubuntu-libtorch-sbt:torch20'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- name: install git
run: apt-get update && apt-get install -y git && git version
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: ls -lhatr
- run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- run: git describe --tags
- name: Compile
run: sbt -mem 3000 clean +test
- name: Publish
run: sbt -mem 3000 ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- name: website
run: |
wget -O - https://github.com/gohugoio/hugo/releases/download/v0.59.1/hugo_extended_0.59.1_Linux-64bit.tar.gz | tar xzf - hugo
chmod u+x hugo
sbt clean docs/mdoc docs/unidoc
cd website
../hugo
rm ../hugo
cd public
touch .nojekyll
- name: gh-pages-deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./website/public