Actions: Create Pre-Releases

This commit is contained in:
Josh Shippam
2023-01-26 02:12:06 +00:00
committed by GitHub
parent 0856210732
commit dd30fb3d70
+17 -2
View File
@@ -4,7 +4,7 @@
# This workflow uses actions that are not certified by GitHub. # This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by # They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support # separate terms of service, privacy policy, and support
# documentation. # documentation.g
name: Java CI with Maven name: Java CI with Maven
@@ -35,9 +35,24 @@ jobs:
run: | run: |
mvn -B package --file pom.xml mvn -B package --file pom.xml
mkdir -p ~/artifacts 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 - name: Publish build to GH Actions
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
path: ~/artifacts/* path: ~/artifacts/*
name: 2006Bot-Build 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