mirror of
https://github.com/FoxRefire/WVCore.Server.git
synced 2026-04-02 17:48:16 +00:00
Compare commits
8 Commits
8634304626
...
8635160639
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
736e84cb31 | ||
|
|
80788bcd1b | ||
|
|
370d0b3435 | ||
|
|
ef2a11caf9 | ||
|
|
6802aa3005 | ||
|
|
caa4400708 | ||
|
|
642795e0bc | ||
|
|
215439594c |
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
@@ -9,8 +9,11 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
steps:
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
@@ -37,38 +40,9 @@ jobs:
|
||||
dotnet publish -r linux-bionic-arm64 -c Release
|
||||
dotnet publish -r osx-x64 -c Release
|
||||
dotnet publish -r osx-arm64 -c Release
|
||||
readlink -f ./
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
release_name: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
run: |
|
||||
gh release create ${{ github.run_id }} -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Upload Release Asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
release_name: ${{ github.run_id }}-${{ github.run_attempt }}
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: ./WVCore.Server/bin/Release/net8.0/win-x64/publish/*
|
||||
asset_name: WVCore.Server-win-x64.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
# 他のプラットフォームに対するアップロードステップを追加してください。
|
||||
# 例:
|
||||
# - name: Upload Release Asset for Linux x64
|
||||
# uses: actions/upload-release-asset@v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
# asset_path: ./WVCore.Server/bin/Release/net8.0/linux-x64/publish/*
|
||||
# asset_name: WVCore.Server-linux-x64.zip
|
||||
# asset_content_type: application/zip
|
||||
|
||||
Reference in New Issue
Block a user