-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAHK.GradeManagement.QueueFunction-build.yml
More file actions
52 lines (42 loc) · 1.7 KB
/
Copy pathAHK.GradeManagement.QueueFunction-build.yml
File metadata and controls
52 lines (42 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build AHK.GradeManagement.QueueFunction
on:
pull_request:
branches: dev # Run workflow on PRs to the main branch.
# Run workflow on pushes to any branch, except the main branch.
# push:
# branches-ignore: dev
# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:
# 👇 Allows this workflow to be called from the deployment workflow, but the parameters must be provided.
workflow_call:
inputs:
artifactName:
description: The name of the artifact to upload to.
required: true
type: string
env:
# 👇 Provide a default artifact name for when this workflow is not called by the deployment workflow.
artifactName: ${{ inputs.artifactName || 'buildArtifact' }}
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo source code
uses: actions/checkout@v3
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: "9.0.x"
- name: "Run dotnet restore"
working-directory: src/Ahk.GradeManagement
run: dotnet restore Ahk.GradeManagement.sln
- name: "Run dotnet publish"
working-directory: src/Ahk.GradeManagement
run: dotnet publish Ahk.GradeManagement.QueueFunction/Ahk.GradeManagement.QueueFunction.csproj --no-restore --configuration Release --output '${{ github.workspace }}/output/Ahk.GradeManagement.QueueFunction'
- name: Upload artifact
uses: actions/upload-artifact@v4.4.0
with:
name: ${{ env.artifactName }}
path: ./output # Put the path to the build artifact files directory here.
if-no-files-found: error
include-hidden-files: true