-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.27 KB
/
Copy pathpull_request_analysis.yml
File metadata and controls
62 lines (53 loc) · 1.27 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
53
54
55
56
57
58
59
60
61
62
name: Pull_request_analysis
on:
pull_request:
branches:
- dev/*
- main
workflow_dispatch:
permissions:
contents: read
id-token: write
pull-requests: write
packages: write
jobs:
Pull_request_analysis:
runs-on: ubuntu-22.04
name: Pull_request_analysis
steps:
- name: chekcout_repo
uses: actions/checkout@v6.0.2
- name: check_pwd
shell: bash
run: |
echo "----Present working directoyr--"
pwd
echo "-------------Files--------------"
ls -lah
- name: Install_dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
6.0.X
- name: check_dotnetversion
shell: bash
run: |
dotnet --info
- name: run_build
run: |
cd "Expense_Tracker"
ls -lah
echo "dotnet restore"
dotnet restore
echo "dotnet build"
dotnet build
- name: publish
run: |
dotnet publish --configuration Release --output ./publish
echo "List files"
ls -lah
- name: upload_artifact
uses: actions/upload-artifact@v4
with:
name: publish
path: '**/publish'