fix: Migrate player before create player table #3
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: Add a snapshot build of this plugin | |
on: | |
push: | |
branches: [ develop ] | |
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/delete-tag-and-release@v0.2.1 | |
with: | |
delete_release: true | |
tag_name: ${{env.VER}} | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Create snapshot release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
with: | |
tag_name: ${{env.VER}} | |
release_name: PlotPlugin v${{env.VER}} | |
draft: false | |
prerelease: true | |
- name: Upload plugin as snapshot 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: PlotPlugin.jar | |
asset_content_type: application/java-archive |