Skip to content

feat: add request validation for group insert, patch, and update endp… #177

feat: add request validation for group insert, patch, and update endp…

feat: add request validation for group insert, patch, and update endp… #177

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- main
concurrency:
group: ${{github.workflow}} - ${{github.ref}}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build with Gradle Wrapper
env:
PAT: ${{ secrets.PAT }}
run: chmod +x ./gradlew && ./gradlew build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: hoshizora-pics-artifact
path: build
retention-days: 1
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: hoshizora-pics-artifact
path: build
- name: Generate Changelog
uses: heinrichreimer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
output: CHANGELOG.md
onlyLastTag: true
stripGeneratorNotice: true
headerLabel: "## Good things have arrived"
- name: Release
uses: softprops/action-gh-release@v2
with:
name: "Hoshizora-Pics ${{ github.ref_name }}"
body_path: CHANGELOG.md
files: build/*