Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Update create-release-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger authored Dec 2, 2023
1 parent dc23bd7 commit 562b2af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/create-release-cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: .NET Core Desktop - Release CI

on:
workflow_dispatch:
push:
tags:
- '*'
Expand Down Expand Up @@ -30,18 +31,18 @@ jobs:
run: |
dotnet restore
dotnet build $env:Project_File -c Release -f net8.0-windows -r win-${{ matrix.targetplatform }} --no-restore
dotnet publish $env:Project_File -c Release -f net8.0-windows -r win-${{ matrix.targetplatform }} -o .\publish\FAFB_PowerShell_Tool_${{ matrix.targetplatform }} --no-restore
dotnet publish $env:Project_File -c Release -f net8.0-windows -r win-${{ matrix.targetplatform }} -o ./publish/FAFB_PowerShell_Tool_${{ matrix.targetplatform }} --no-restore
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: FAFB_PowerShell_Tool_${{ matrix.targetplatform }}
path: .\publish\FAFB_PowerShell_Tool_${{ matrix.targetplatform }}
path: publish/FAFB_PowerShell_Tool_${{ matrix.targetplatform }}

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: .\publish\FAFB_PowerShell_Tool_${{ matrix.targetplatform }}\*
files: publish/FAFB_PowerShell_Tool_${{ matrix.targetplatform }}/*
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit 562b2af

Please sign in to comment.