File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 run : dotnet build --no-restore --configuration Release
4040
4141 - name : Test
42- run : dotnet test
43-
44- Deploy :
45- needs : build
46- if : github.ref == 'refs/heads/main'
47- runs-on : ubuntu-latest
48- permissions :
49- contents : read
50- packages : write
51- steps :
52- - name : Checkout Code
53- uses : actions/checkout@v2
54- with :
55- submodules : recursive # Checkout submodules recursively
56-
57- - name : Setup .NET
58- uses : actions/setup-dotnet@v3.2.0
59- with :
60- dotnet-version : 9.0
61-
62- - name : Login to GitHub Container Registry
63- uses : docker/login-action@v1
64- with :
65- registry : ghcr.io
66- username : ${{ github.repository_owner }}
67- password : ${{ secrets.GITHUB_TOKEN }}
68-
69- - name : Build and Push API Container
70- run : |
71- dotnet publish ./Template.Api/Template.Api.csproj -c Release --os linux --arch arm64 /t:PublishContainer
72-
73- - name : Build and Push Web Container
74- run : |
75- dotnet publish ./Template.Web/Template.Web.csproj -c Release --os linux --arch arm64 /t:PublishContainer
42+ run : dotnet test
You can’t perform that action at this time.
0 commit comments