Skip to content

Update README.md

Update README.md #26

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Prepare Project
uses: actions/checkout@v3
with:
ref: 'master'
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: |
mvn -B install --file pom.xml
echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: '${{ env.PROJECT_VERSION }}'
release_name: SimpleStaffChat2
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: './target/SimpleStaffChat2-${{ env.PROJECT_VERSION }}.jar'
asset_name: 'SimpleStaffChat2-${{ env.PROJECT_VERSION }}.jar'
asset_content_type: 'application/java-archive'