Skip to content

Deploy

Deploy #5

Workflow file for this run

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:
java-version: 17
distribution: 'temurin'
- uses: gradle/wrapper-validation-action@v2
- uses: gradle/gradle-build-action@v2
name: Deploy release
with:
arguments: build publish --no-daemon --stacktrace
env:
ORG_GRADLE_PROJECT_paperUsername: ${{ secrets.DEPLOY_USER }}
ORG_GRADLE_PROJECT_paperPassword: ${{ secrets.DEPLOY_PASS }}
- name: Parse tag
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
- name: Create release and changelog
uses: MC-Machinations/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: restamp ${{ steps.vars.outputs.tag }}
files: |
build/libs/*.jar