Skip to content

Commit 10bd72f

Browse files
Fix the release github action.
1 parent 73c01aa commit 10bd72f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/github-actions-release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,22 @@ jobs:
2525
with:
2626
dotnet-version: '9.x'
2727

28-
- name: Build AppRegistrationSecretWatcher functions
29-
run: dotnet build
28+
- name: Build AppRegistrationSecretWatcher Azure Functions
29+
run: dotnet publish
3030
--property:Configuration=Release
3131
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }}
3232
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }}
33-
"src/Functions/Functions.csproj"
33+
--output ./publish
34+
"src/Functions/Functions.csproj"
35+
36+
- name: Package the AppRegistrationSecretWatcher Azure Functions
37+
run: cd ./publish && zip -r ../PosInformatique.Azure.Identity.AppRegistrationSecretWatcher.zip .
38+
39+
- name: Upload to release
40+
uses: softprops/action-gh-release@v1
41+
with:
42+
tag_name: v${{ github.event.inputs.VersionPrefix }}${{ github.event.inputs.VersionSuffix && format('-{0}', github.event.inputs.VersionSuffix) || '' }}
43+
files: functionapp.zip
44+
overwrite: true
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)