-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (32 loc) · 1005 Bytes
/
release-tag.yml
File metadata and controls
40 lines (32 loc) · 1005 Bytes
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
name: Release Tagged Builds
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set release version
run: echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build with JCompilo
run: BUILD_NUMBER="$RELEASE_VERSION" ./jcompilo.sh
- name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: false
files: |
build/artifacts/yadic-${{ env.RELEASE_VERSION }}.pom
build/artifacts/yadic-${{ env.RELEASE_VERSION }}.jar
build/artifacts/yadic-${{ env.RELEASE_VERSION }}-sources.jar
- name: Publish to GitHub Packages
run: bin/publish "$RELEASE_VERSION" "$GH_PACKAGES_TOKEN"
env:
GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }}