Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Remove debug info from settings #8

Remove debug info from settings

Remove debug info from settings #8

Workflow file for this run

name: Release this plugin
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout github repository
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Get name and version from pom.xml
run: |
VER=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
echo "VER=$VER" >> $GITHUB_ENV
NAME=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)
echo "NAME=$NAME" >> $GITHUB_ENV
- name: Build plugin
run: mvn package
- name: Delete old release
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: ${{env.VER}}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
tag_name: ${{env.VER}}
release_name: BasicSpawnProtection v${{env.VER}}
- name: Upload plugin as release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: ${{steps.create_release.outputs.upload_url}}
asset_path: target/${{env.NAME}}-${{env.VER}}.jar
asset_name: BasicSpawnProtection.jar
asset_content_type: application/java-archive