forked from kstateome/canvas-api
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.1 KB
/
release-and-publish.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
name: Release new version of artifact
on:
workflow_dispatch:
inputs:
revision_scope:
description: 'What the revision of the application is, according to SemVer. Valid options are major, minor and patch.'
required: true
default: 'patch'
jobs:
run-gradle-test:
runs-on: ubuntu-latest
name: Run release build
steps:
- uses: actions/checkout@v4
- name: Fetch tags for Reckon usage
run: git fetch --unshallow --tags
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: "gradle"
- name: Assemble and publish
run: |
./gradlew \
-PgithubUsername="${{ secrets.REPOSITORY_USERNAME }}" \
-PgithubPassword="${{ secrets.REPOSITORY_TOKEN }}" \
-Prelease="true" \
-Penvironment=production \
-Preckon.stage="final" \
-Preckon.scope="${{ inputs.revision_scope }}" \
assemble publish reckonTagCreate reckonTagPush \
--refresh-dependencies --no-daemon \
-x test