Fix workflow #27
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: Metrics Deployment | |
on: | |
push: {} | |
jobs: | |
publish: | |
name: Upload Release | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, '[ci skip]') == false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Replace version | |
run: sed -i "s/UNOFFICIAL/$GITHUB_RUN_NUMBER/g" pom.xml | |
- name: Set up JDK 16 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 16 | |
- name: Build with Maven | |
run: mvn -B package | |
# - name: Create a Release | |
# id: create_release | |
# uses: actions/create-release@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# with: | |
# tag_name: ${{ github.run_number }} | |
# release_name: Build ${{ '#' }}${{ github.run_number }} | |
# - name: Upload Module 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/HeadLimiter.jar | |
# asset_name: HeadLimiter.jar | |
# asset_content_type: application/jar | |
- name: Upload to Blob Builds | |
uses: WalshyDev/blob-builds/gh-action@walshy/gh-action | |
with: | |
project: HeadLimiter | |
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }} | |
file: ./target/HeadLimiter.jar | |
releaseNotes: ${{ github.event.head_commit.message }} |