Added styling to a button #13
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 and Deploy | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
env: | |
CONFIGURATION: Release | |
DOTNET_VERSION: 8.0.x | |
SRC_DIRECTORY_PATH: ${{ github.workspace }}/src/ | |
BUILD_ARTIFACTS_PATH: ${{ github.workspace }}/build_artifacts | |
PULUMI_PROJECT_FILE_PATH: ${{ github.workspace }}/infra/pulumi-infra-deploy/pulumi-infra-deploy.csproj | |
PULUMI_STACK_NAME: prod | |
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.3.0 | |
- name: Install Cloudflare Wrangler | |
run: npm install --location=global wrangler | |
- name: Log in to Azure CLI so the Pulumi run can get Key Vault Secrets | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS_GITHUB_ACTIONS_SVGHELPERS_SITE }} | |
- name: Install Pulumi | |
uses: pulumi/setup-pulumi@v2 | |
- name: Dotnet Restore - Pulumi Project | |
run: dotnet restore ${{ env.PULUMI_PROJECT_FILE_PATH }} | |
- name: Cake - Build | |
run: dotnet run --project build/build/Build.csproj -- --configuration=${{ env.CONFIGURATION }} --srcDirectoryPath=${{ env.SRC_DIRECTORY_PATH }} --BuildArtifactsPath=${{ env.BUILD_ARTIFACTS_PATH }} | |
- name: Cake - Deploy | |
run: dotnet run --project ${{ github.workspace }}/deploy/deploy/Deploy.csproj -- --configuration=${{ env.CONFIGURATION }} --PulumiStackName=${{ env.PULUMI_STACK_NAME }} --WorkspacePath=${{ github.workspace }} --BuildArtifactsPath=${{ env.BUILD_ARTIFACTS_PATH }} | |