Skip to content

Merge branch 'develop' #146

Merge branch 'develop'

Merge branch 'develop' #146

Workflow file for this run

name: main
on:
push:
branches:
- master
- develop
tags:
- "*"
jobs:
package:
runs-on: windows-latest
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Publish
run: |
dotnet publish M3u8Downloader_H/ -o M3u8Downloader_H/bin/Publish --configuration Release
dotnet publish M3u8Downloader_H/ -o M3u8Downloader_H/bin/PublishSingleFile -c Release --self-contained true -r win7-x64 -p:PublishSingleFile=true
- name: Download .NET 6 SDK And Copy .NET 6 SDK
run: |
Invoke-WebRequest -Uri 'https://download.visualstudio.microsoft.com/download/pr/d0849e66-227d-40f7-8f7b-c3f7dfe51f43/37f8a04ab7ff94db7f20d3c598dc4d74/windowsdesktop-runtime-6.0.29-win-x64.exe' -OutFile 'dotnet-sdk-win-x64.exe'
Copy-Item dotnet-sdk-win-x64.exe M3u8Downloader_H/bin/Publish -Recurse
- name: Upload artifacts normal
uses: actions/upload-artifact@v3
with:
name: M3u8Downloader_H
path: M3u8Downloader_H/bin/Publish
- name: Upload artifacts single file
uses: actions/upload-artifact@v3
with:
name: M3u8Downloader_H-SingleFile
path: M3u8Downloader_H/bin/PublishSingleFile
deploy:
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
needs: package
runs-on: ubuntu-latest
steps:
- name: Download artifacts normal
uses: actions/download-artifact@v3
with:
name: M3u8Downloader_H
path: M3u8Downloader_H
- name: Download artifacts single file
uses: actions/download-artifact@v3
with:
name: M3u8Downloader_H-SingleFile
path: M3u8Downloader_H-SingleFile
- name: Create package
run: |
Compress-Archive -Path M3u8Downloader_H/* -DestinationPath M3u8Downloader_H.zip -Force
Compress-Archive -Path M3u8Downloader_H-SingleFile/* -DestinationPath M3u8Downloader_H-SingleFile.zip -Force
shell: pwsh
- name: Create release
uses: softprops/action-gh-release@v1
with:
body: |
- [更新日志](https://github.com/Harlan-H/M3u8Downloader_H/blob/master/Changelog.md)
draft: false
prerelease: false
files: |
M3u8Downloader_H.zip
M3u8Downloader_H-SingleFile.zip