Skip to content

Build

Build #182

Workflow file for this run

name: Build
on:
schedule:
- cron: '0 6 * * 1-5'
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop
- hotfix/*
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Get the sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Run Cake script
uses: cake-build/cake-action@e313098c20bca582d10e19cbae215378d1f3b903
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_CONTAINER_REGISTRY: ${{ secrets.AZURE_CONTAINER_REGISTRY }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_AUTHORITY_HOST: "https://login.microsoftonline.com"
with:
cake-version: tool-manifest
target: GitHub-Actions
- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v5
- name: Upload pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: './artifacts/output'
deploy:
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4