-
Notifications
You must be signed in to change notification settings - Fork 160
68 lines (65 loc) · 1.8 KB
/
release.yml
File metadata and controls
68 lines (65 loc) · 1.8 KB
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
name: Build and Release
on:
push:
tags:
- '*.*'
paths-ignore:
- 'docs/**'
- 'demo/**'
- '.github/workflows/site.yml'
- '.github/workflows/javadocs.yml'
permissions:
packages: write
jobs:
release-on-push:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
fail-fast: false
steps:
- name: Checkout the Main Branch
uses: actions/checkout@v2.3.3
with:
ref: refs/heads/main
fetch-depth: 1
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Release
env:
BASE: origin/${{ github['base_ref'] }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }}
GPG_KEY_FILE: ${{ secrets.GPG_KEY_FILE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
. build/release/global.sh
bash build/release/00_prep.sh
bash build/release/10_build.sh
bash build/release/20_test.sh
bash build/release/30_release.sh
bash build/release/40_drop.sh
- name: Gather artifacts and materials
if: always()
run: |
bash build/release/50_gather.sh
- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@v2.2.3
with:
name: release-tag
path: |
build/release/workarea/release_files
if-no-files-found: ignore