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

Commit

Permalink
Update release-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger authored Dec 2, 2023
1 parent 12a8302 commit d02c571
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:

jobs:
build:
strategy:
matrix:
targetplatform: [x64]
#targetplatform: [x86, x64]

runs-on: windows-latest

env:
Expand All @@ -30,19 +25,24 @@ jobs:
- name: Dotnet Build & Publish
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 build $env:Project_File -c Release -f net8.0-windows -r win-x64 --no-restore
dotnet publish $env:Project_File -c Release -f net8.0-windows -r win-x64 -o ./publish/FAFB_PowerShell_Tool_x64 --no-restore
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: FAFB_PowerShell_Tool_${{ matrix.targetplatform }}
path: publish/FAFB_PowerShell_Tool_${{ matrix.targetplatform }}
name: FAFB_PowerShell_Tool_x64
path: publish/FAFB_PowerShell_Tool_x64

- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: FAFB_PowerShell_Tool_x64

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

0 comments on commit d02c571

Please sign in to comment.