Skip to content

Commit

Permalink
Add Dev Build Workflow #11
Browse files Browse the repository at this point in the history
Signed-off-by: Lyzev <[email protected]>
  • Loading branch information
Lyzev committed Nov 3, 2023
1 parent 37eef2a commit 762baea
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 63 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Validate Gradle Wrapper"

on: [ push, pull_request ]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
63 changes: 0 additions & 63 deletions .github/workflows/pipeline.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- 'dev'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: gradle
- name: Build the project
run: ./gradlew build
- name: Run Release Script
run: |
echo "Running shell script with version: ${{ github.event.inputs.version }}"
mkdir release
cp build/libs/*.jar release
for asset in release/*; do
md5sum $asset >> $asset.md5
sha1sum $asset >> $asset.sha1
sha256sum $asset >> $asset.sha256
sha512sum $asset >> $asset.sha512
done
ls -l release
- uses: marvinpinto/action-automatic-releases@latest
name: "Create release"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "dev"
title: "Development Build"
files: |
release/*

0 comments on commit 762baea

Please sign in to comment.