-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 924 Bytes
/
build.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
name: SmartAPI | Maven-deployer
# This workflow is used to deploy a new maven-build of this api, whenever a new release is created.
# Always make sure to delete the latest package before creating a new release!
on:
release: # Triggers this workflow whenever a new release is created.
type: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Repository-Checkout
uses: actions/checkout@v2
# Sets the current Java-version to 1.8.
- name: Set up to JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8.0
# Deploys a maven-build as a new package to be accessed with any pom.xml.
- name: Deploy to GitHub
run: |
mvn source:jar
mvn deploy
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}