Skip to content

Added FulmiCollection dependency. #4

Added FulmiCollection dependency.

Added FulmiCollection dependency. #4

Workflow file for this run

# Name of the action
name: Automatic Release
# Event to run on
on:
# Will run on every push in the "main" branch
push:
branches:
- main
permissions:
contents: write
# Jobs that will execute
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-latest
steps:
# Checkout repo to bring the script to the repository directory
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
# Using Java 17 to enable usage of < and > in JavaDoc
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: "./gradlew build"
- name: Delete previous and create new release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_NAME: ${{ github.event.repository.name }}
# Message specified in the commit
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
version=$(grep -Po "(?<=version = (\"|'))([^'\"]+)" build.gradle) && \
java -jar build/libs/$REPOSITORY_NAME-$version.jar && \
test "$(gh release list | grep -F "$version")" != "" && gh release delete "$version" && gh api repos/:owner/:repo/git/refs/tags/${version} -X DELETE; \
gh release create "$version" \
--repo="$GITHUB_REPOSITORY" \
--title="$REPOSITORY_NAME $version" \
--notes="$COMMIT_MESSAGE" \
--latest build/libs/$REPOSITORY_NAME-$version.jar