Skip to content

Commit 8c265d0

Browse files
authored
try publish action
1 parent 0b5595a commit 8c265d0

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
3+
4+
name: Gradle Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up JDK 1.8
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 1.8
21+
server-id: github
22+
settings-path: ${{ github.workspace }}
23+
24+
- name: Build with Gradle
25+
run: gradle build
26+
27+
- name: Publish to GitHub Packages
28+
run: gradle publish
29+
env:
30+
USERNAME: ${{ secrets.GITUSER }}
31+
TOKEN: ${{ secrets.TOKEN }}

0 commit comments

Comments
 (0)