v1.59 #188
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |