Skip to content

feat: modify user and image entity #28

feat: modify user and image entity

feat: modify user and image entity #28

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- main
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
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
run: echo "# Good things have arrived" > ${{ github.workspace }}-CHANGELOG.txt
- name: release
uses: softprops/action-gh-release@v2
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
files: build/*