Skip to content

v1.2.0.0

v1.2.0.0 #7

Workflow file for this run

# Release(ドラフト)を作る
# 参考http://skawashima.com/blog/2019/12/github-actions-auto-release/
name: Publish
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: windows-latest
env:
output: PanoramaApp/bin/Release/net8.0-windows/win-x64/publish/
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Publish
run: dotnet publish -c Release --self-contained true -p:PublishSingleFile=true
- name: Create Zip
run: Compress-Archive -Path ${{ env.output }}* -DestinationPath ${{ env.output }}App.zip
shell: pwsh
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
# 使い方
1. App.zipをダウンロードして展開
2. PanoramaApp.exeを実行
Windows Diffenderが警告を出しますが気にしないでください。
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ env.output }}App.zip
asset_name: App.zip
asset_content_type: application/zip