Skip to content

Bump vite, @sveltejs/kit and vite-plugin-tailwind-purgecss in /app #64

Bump vite, @sveltejs/kit and vite-plugin-tailwind-purgecss in /app

Bump vite, @sveltejs/kit and vite-plugin-tailwind-purgecss in /app #64

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
release:
types:
- published
workflow_dispatch:
env:
# Disable the .NET logo in the console output.
DOTNET_NOLOGO: true
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending .NET CLI telemetry to Microsoft.
DOTNET_CLI_TELEMETRY_OPTOUT: true
# Set the build number in MinVer.
MINVERBUILDMETADATA: build.${{github.run_number}}
jobs:
build:
name: Build-${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: "Checkout"
uses: actions/checkout@v6
with:
lfs: true
fetch-depth: 0
- name: "Install .NET Core SDK"
uses: actions/setup-dotnet@v5.0.1
- name: "Dotnet Tool Restore"
run: dotnet tool restore
shell: pwsh
- name: "Dotnet Cake Build"
run: dotnet cake --target=Build
shell: pwsh
- name: "Dotnet Cake Test"
run: dotnet cake --target=Test
shell: pwsh
- name: "Dotnet Cake Publish"
run: dotnet cake --target=Publish
shell: pwsh
- name: "Publish Artefacts"
uses: actions/upload-artifact@v6.0.0
with:
name: ${{matrix.os}}
path: "./Artefacts"
docker:
name: Docker-${{matrix.os}}
env:
DOCKER_IMAGE_NAME: gemlevelprotapi
DOCKER_REGISTRY: ghcr.io
DOCKER_USERNAME: username
DOCKER_PASSWORD: ${{secrets.GITHUB_TOKEN}}
environment:
name: "GitHub Container Registry"
url: https://github.com/Username/Project/pkgs/container/gemlevelprotapi
permissions:
packages: write
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: "Checkout"
uses: actions/checkout@v6
with:
lfs: true
fetch-depth: 0
- name: "Install .NET Core SDK"
uses: actions/setup-dotnet@v5.0.1
- name: "Dotnet Tool Restore"
run: dotnet tool restore
shell: pwsh
- name: "Install QEMU"
id: qemu
uses: docker/setup-qemu-action@v3
- name: "Available platforms"
run: echo ${{steps.qemu.outputs.platforms}}
- name: "Install Docker BuildX"
uses: docker/setup-buildx-action@v3
- name: "Docker Login"
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
run: echo ${{env.DOCKER_PASSWORD}} | docker login ${{env.DOCKER_REGISTRY}} --username ${{env.DOCKER_USERNAME}} --password-stdin
shell: pwsh
- name: "Dotnet Cake DockerBuild"
run: dotnet cake --target=DockerBuild --tag=${{env.DOCKER_REGISTRY}}/${{env.DOCKER_USERNAME}}/${{env.DOCKER_IMAGE_NAME}} --push=${{github.ref == 'refs/heads/main' || github.event_name == 'release'}}
shell: pwsh