Skip to content

Commit

Permalink
CI: Switch provider from CircleCI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltik committed Oct 21, 2024
1 parent 54af12d commit 43d0bf0
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 52 deletions.
51 changes: 0 additions & 51 deletions .circleci/config.yml

This file was deleted.

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

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

jobs:
build:
runs-on: ubuntu-latest
env:
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Cache Gradle and Maven dependencies
uses: actions/cache@v4
with:
path: |
~/.m2
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Download dependencies
run: ./gradlew dependencies

- name: Run tests
run: ./gradlew test

- name: Clean build environment
run: ./gradlew clean

- name: Build JAR
run: ./gradlew jar

- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: JAR Artifact(s)
path: build/libs/*.jar

- name: Upload release asset
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: build/libs/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Only affects `compatibility.edit-validation: Extra`.

### Under the Hood

* Switched CI provider from CircleCI to GitHub Actions

## v1.14.4 (2023-07-31)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Total downloads](https://img.shields.io/github/downloads/Deltik/SignEdit/total)](https://github.com/Deltik/SignEdit/releases)
[![Latest version downloads](https://img.shields.io/github/downloads/Deltik/SignEdit/latest/total)](https://github.com/Deltik/SignEdit/releases)
[![Spigot rating](https://img.shields.io/spiget/rating/47604)](https://www.spigotmc.org/resources/signedit-for-bukkit.47604/rate)
[![CircleCI](https://img.shields.io/circleci/project/github/Deltik/SignEdit)](https://circleci.com/gh/Deltik/SignEdit)
[![Build status](https://img.shields.io/github/actions/workflow/status/Deltik/SignEdit/build)](https://github.com/Deltik/SignEdit/actions/workflows/build.yml)

**SignEdit for Bukkit** is a [Bukkit plugin](https://www.spigotmc.org/resources/categories/bukkit.4/) that allows players to edit sign objects by looking at them or clicking on them and typing in a SignEdit command.

Expand Down

0 comments on commit 43d0bf0

Please sign in to comment.