Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Java CI to create and upload release on pull request
on:
# push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
build-number: ${GITHUB_RUN_NUMBER}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
cache: 'maven'
- run: mvn clean package -DskipTests
- run: mkdir staging && mv target/WordleSolver-jar-with-dependencies.jar target/wordlesolver-${{ env.build-number }}.jar && cp target/*.jar staging
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging
retention-days: 1
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.TOKEN }}"
automatic_release_tag: "${{ github.run_number }}"
title: "Automated Build ${{ github.run_number }}"
prerelease: false
files: staging/*.jar
Loading