Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Pd233 committed Dec 26, 2023
1 parent 2787d3f commit b1b982c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ permissions:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
framework:
- net462
- net7.0-windows
runtime:
- win10-x64
steps:
- uses: actions/checkout@v3

Expand All @@ -25,10 +18,10 @@ jobs:

- name: Build
run: |
dotnet publish src/LipUI/LipUI.csproj -c Release -f ${{ matrix.framework }} -o build/ -r ${{ matrix.runtime }} --sc true
dotnet publish src/LipUI/LipUI.csproj -c Release -f net7.0-windows -o build/ -r win10-x64 --sc true
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.framework }}-${{ matrix.runtime }}
name: net7.0-windows-win10-x64
path: |
build/
24 changes: 5 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ permissions:
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
framework:
- net462
- net7.0-windows
runtime:
- win10-x64
steps:
- uses: actions/checkout@v3

Expand All @@ -25,31 +18,24 @@ jobs:

- name: Build
run: |
dotnet publish src/LipUI/LipUI.csproj -c Release -f ${{ matrix.framework }} -o build/ -r ${{ matrix.runtime }} --sc true
dotnet publish src/LipUI/LipUI.csproj -c Release -f net7.0-windows -o build/ -r win10-x64 --sc true
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.framework }}-${{ matrix.runtime }}
name: net7.0-windows-win10-x64
path: |
build/
upload-to-release:
needs:
- build
runs-on: ubuntu-latest
strategy:
matrix:
framework:
- net462
- net7.0-windows
runtime:
- win10-x64
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: ${{ matrix.framework }}-${{ matrix.runtime }}
name: net7.0-windows-win10-x64
path: artifacts/

- name: Copy essential files
Expand All @@ -59,12 +45,12 @@ jobs:
- name: Pack artifacts
run: |
cd artifacts
zip -9r ../lipui-${{ matrix.framework }}-${{ matrix.runtime }}.zip *
zip -9r ../lipui-net7.0-windows-win10-x64.zip *
cd ..
- name: Upload artifacts to release
uses: softprops/action-gh-release@v1
with:
append_body: true
files: |
lipui-${{ matrix.framework }}-${{ matrix.runtime }}.zip
lipui-net7.0-windows-win10-x64.zip

0 comments on commit b1b982c

Please sign in to comment.