Skip to content

v1.10

v1.10 #81

Workflow file for this run

name: dotnet package
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- v*
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK 7.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Install dependencies
run: dotnet restore --nologo
- name: Build
run: msbuild YoutubeSegmentDownloader.sln -t:publish -p:Configuration=Release -p:DeployOnBuild=true -p:PublishProfile=ClickOnceProfile
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: artifact
path: bin/Release/net7.0-windows/win-x64/app.publish
retention-days: 1
deploy_setup:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifact
- name: Deploy files to setup branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: true
publish_branch: setup
release:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifact
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
body_path: NOTICE
files: |
YoutubeSegmentDownloader.exe
setup.exe