Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit f90a85d

Browse files
committed
2 parents 53a2d6a + 6407bfd commit f90a85d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,8 @@ jobs:
2929
dotnet-version: '6.0.x'
3030
include-prerelease: true
3131

32-
- name: dotnet restore
33-
run: dotnet restore
34-
3532
- name: dotnet publish
36-
run: dotnet publish --no-restore -c ${{ matrix.configuration }} -r ${{ matrix.runtime }} -o ${{ env.OUTPUT_DIR }} --self-contained
33+
run: dotnet publish -c ${{ matrix.configuration }} -r ${{ matrix.runtime }} -o ${{ env.OUTPUT_DIR }} --self-contained
3734

3835
- name: Upload build artifacts
3936
uses: actions/upload-artifact@v2
@@ -42,19 +39,19 @@ jobs:
4239
path: ${{ env.OUTPUT_DIR }}
4340

4441
- name: Zip
45-
if: github.event_name == 'release' && ${{ matrix.configuration }} == 'Release'
42+
if: github.event_name == 'release' && matrix.configuration == 'Release'
4643
run: zip -qq -r ${{ env.OUTPUT_ZIP }} *
4744
working-directory: ${{ env.OUTPUT_DIR }}
4845

4946
- name: Get release
50-
if: github.event_name == 'release' && ${{ matrix.configuration }} == 'Release'
47+
if: github.event_name == 'release' && matrix.configuration == 'Release'
5148
id: get-release
5249
uses: bruceadams/get-release@v1.2.3
5350
env:
5451
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5552

5653
- name: Upload release
57-
if: github.event_name == 'release' && ${{ matrix.configuration }} == 'Release'
54+
if: github.event_name == 'release' && matrix.configuration == 'Release'
5855
uses: actions/upload-release-asset@v1.0.2
5956
env:
6057
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)