-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.17 KB
/
deploy.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
name: Deploy
on:
push:
tags: ['v*']
jobs:
deploy:
name: Deploy
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
name: Deploy
with:
arguments: build publishCodebookPublicationToPapermcRepository --stacktrace
env:
ORG_GRADLE_PROJECT_papermcUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_papermcPassword: ${{ secrets.NEXUS_PASSWORD }}
- name: Get tag name
id: get_tag
shell: bash
run: |
tag_name="$(echo $GITHUB_REF | cut -d / -f 3)"
echo "tag=$tag_name" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_tag.outputs.tag }}
name: 'Release ${{ steps.get_tag.outputs.tag }}'
prerelease: false
draft: false
files: |
build/libs/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}