Skip to content

Commit f58e9f1

Browse files
committed
Remove deploy stage from GitHub Actions workflow
1 parent 09b09bf commit f58e9f1

1 file changed

Lines changed: 1 addition & 34 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,37 +39,4 @@ jobs:
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

0 commit comments

Comments
 (0)