Skip to content

Commit

Permalink
Actions: Create Pre-Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark98 authored Jan 26, 2023
1 parent 0856210 commit dd30fb3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# documentation.g

name: Java CI with Maven

Expand Down Expand Up @@ -35,9 +35,24 @@ jobs:
run: |
mvn -B package --file pom.xml
mkdir -p ~/artifacts
mv target/Parabot-V3.0.0.jar ~/artifacts/
cp target/Parabot-V3.0.0.jar ~/artifacts/
- name: Publish build to GH Actions
uses: actions/upload-artifact@v2
with:
path: ~/artifacts/*
name: 2006Bot-Build
- name: Create Version
id: get_version
run: |
echo "VERSION=v$(date +%s)" >> $GITHUB_OUTPUT #&& echo "::set-output name=VERSION::${verson}"
- name: Upload Parabot Pre-Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
name: ${{ github.sha }}
prerelease: true
files: |
target/Parabot-V3.0.0.jar

0 comments on commit dd30fb3

Please sign in to comment.