diff --git a/.github/workflows/create-release-cd.yml b/.github/workflows/create-release-cd.yml index e22ae3e..80412e3 100644 --- a/.github/workflows/create-release-cd.yml +++ b/.github/workflows/create-release-cd.yml @@ -1,6 +1,7 @@ name: .NET Core Desktop - Release CI on: + workflow_dispatch: push: tags: - '*' @@ -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 }}