Update Footer.svelte #732
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [ push ] | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
name: "Build - SpringBoot & Frontend" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "[Git] Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "Use pnpm" | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: "Install Dependencies" | |
run: pnpm install --frozen-lockfile | |
- name: "[Frontend] Build with Vite" | |
run: pnpm build | |
- name: "[WAS] Set up JDK 11" | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: "[WAS] Validate Gradle wrapper" | |
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
- name: "[WAS] Make gradlew executable" | |
run: chmod +x ./gradlew | |
- name: "[WAS] Build with Gradle" | |
run: ./gradlew bootJar | |
- name: "[Artifact] Upload" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kkutu-web | |
path: build/libs/kkutu-web-*.jar | |
docker: | |
name: "Publish - GitHub Packages" | |
runs-on: ubuntu-latest | |
needs: [ build ] | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: "[Git] Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "[Artifact] Download" | |
uses: actions/download-artifact@v4 | |
with: | |
name: kkutu-web | |
path: build/libs | |
- name: "[Git] Create Release" | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: kkutu-web-v${{ github.run_number }} | |
files: build/libs/kkutu-web-*.jar | |
token: ${{ secrets.GH_TOKEN }} | |
- name: "[Docker] Log in to the Container registry" | |
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: "[Docker] Extract metadata (tags, labels) for Docker" | |
id: meta | |
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: "[Docker] Build and push Docker image" | |
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |