Skip to content

Bump actions/checkout from 3 to 4 (#799) #590

Bump actions/checkout from 3 to 4 (#799)

Bump actions/checkout from 3 to 4 (#799) #590

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build website
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Checkout
uses: actions/checkout@v4
- name: Build Website
uses: cake-build/cake-action@v1
with:
verbosity: Diagnostic
cake-bootstrap: true
- name: Deploy netlify
if: ${{ github.event_name != 'pull_request' }}
run: |
npm install -g netlify-cli
netlify deploy --auth=${{ secrets.NETLIFY_DEPLOY_KEY }} --site=${{ secrets.NETLIFY_SITE_ID }} --prod --dir=output