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

.github/workflows/publish.yml #3

.github/workflows/publish.yml

.github/workflows/publish.yml #3

Workflow file for this run

on:
release:
types:
- published
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Build
run: |
dotnet publish src/LipUI.sln -c Release
- uses: actions/upload-artifact@v3
with:
name: net7.0-windows-win10-x64
path: |
src/LipUI/bin/Release/net7.0-windows10.0.19041.0/win10-x64/publish/
upload-to-release:
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: net7.0-windows-win10-x64
path: artifacts/
- name: Copy essential files
run: |
cp CHANGELOG.md LICENSE README.md artifacts/
- name: Pack artifacts
run: |
cd artifacts
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-net7.0-windows-win10-x64.zip