forked from jasper-software/jasper
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.67 KB
/
release.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
name: release
on:
push:
tags:
- version-[0-9]+.[0-9]+.[0-9]+
- version-[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
- version-[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+
- version-[0-9]+.[0-9]+.[0-9]+-beta[0-9]+
jobs:
build:
runs-on: ubuntu-latest
steps:
############################################################
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
############################################################
- name: Prebuild
shell: bash
run: build/github/prebuild
############################################################
- name: Build
shell: bash
run: build/make_release -r ${{github.ref}} -w ${{github.workspace}} -t ${{runner.temp}}/tmp -o ${{runner.temp}}/out
############################################################
- name: Deploy Release
uses: softprops/action-gh-release@v1
with:
files: |
${{runner.temp}}/out/jasper*.tar.gz
body_path: ${{runner.temp}}/out/release_notes.txt
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
############################################################
- name: Deploy GitHub Pages Site for Manual
env:
DEPLOY_KEY: ${{secrets.MANUAL_DEPLOY_KEY}}
shell: bash
run: |
build/github/deploy_gh_pages \
-f \
-m key \
-t ${{runner.temp}}/deploy_gh_pages \
-i ${{runner.temp}}/out/doc \
-r jasper-software/jasper-manual \
-b gh-pages \
-z ${{github.ref}}
############################################################