Skip to content

v1.11.1

v1.11.1 #87

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
# Pre-installed in windows-latest
# - name: Setup .NET Core SDK 8.0
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '8.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@v4
with:
name: artifact
path: bin/Release/net8.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@v4
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@v4
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