Skip to content

Commit

Permalink
auto build and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
soloturn committed Oct 8, 2024
1 parent f61ff1f commit 746fde2
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Category

This change is exactly one of the following (please change `[ ]` to `[x]`) to indicate which:
* [ ] a bug fix (Fix #...)
* [ ] a new Ripper
* [ ] a refactoring
* [ ] a style change/fix
* [ ] a new feature


# Description

Please add details about your change here.


# Testing

Required verification:
* [ ] I've verified that there are no regressions in `mvn test` (there are no new failures or errors).
* [ ] I've verified that this change works as intended.
* [ ] Downloads all relevant content.
* [ ] Downloads content from multiple pages (as necessary or appropriate).
* [ ] Saves content at reasonable file names (e.g. page titles or content IDs) to help easily browse downloaded content.
* [ ] I've verified that this change did not break existing functionality (especially in the Ripper I modified).

Optional but recommended:
* [ ] I've added a unit test to cover my change.
64 changes: 64 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: CI + release

on:
pull_request:
push:
branches:
- '**'
tags:
- '!**'

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
java: [17, 21, 22]
include: # upload from java-17 only
- java: 17
upload: true

steps:

- uses: actions/checkout@v1

- name: Set environment CI_ variables
id: ci-env
uses: FranzDiebold/[email protected]

- name: Set up java
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: zulu
cache: gradle

- name: Build with Gradle
run: gradle clean build -PjavacRelease=${{ matrix.java }}

- name: SHA256
if: matrix.upload
run: shasum -a 256 build/libs/*.jar

- name: upload jar as asset
if: matrix.upload
uses: actions/upload-artifact@v4
with:
name: zipped-jar
path: build/libs/*.jar

- name: create pre-release
id: create-pre-release
if: matrix.upload
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-${{ env.CI_REF_NAME_SLUG }}"
prerelease: true
title: "development build ${{ env.CI_REF_NAME }}"
files: |
build/libs/*.jar
# vim:set ts=2 sw=2 et:

0 comments on commit 746fde2

Please sign in to comment.