Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto build and upload #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
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.
67 changes: 67 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI + release

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

jobs:
build:

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

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: |
git submodule update --init
gradle clean jar -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:
Loading