mirror of
https://github.com/FoxRefire/WVCore.Server.git
synced 2026-04-02 17:48:16 +00:00
Compare commits
8 Commits
8634479742
...
8635300246
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85bf0a6e64 | ||
|
|
736e84cb31 | ||
|
|
80788bcd1b | ||
|
|
370d0b3435 | ||
|
|
ef2a11caf9 | ||
|
|
6802aa3005 | ||
|
|
caa4400708 | ||
|
|
642795e0bc |
166
.github/workflows/release.yml
vendored
166
.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,148 +40,47 @@ 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: Release win-x64
|
||||
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: ./bin/Release/net7.0/win-x64/publish/*
|
||||
asset_name: WVCore.Server-win-x64.zip
|
||||
asset_content_type: application/zip
|
||||
- name: Upload Release
|
||||
run: |
|
||||
zip ./bin/Release/net7.0/win-x64/publish/WVCore.Server-win-x64.zip ./bin/Release/net7.0/win-x64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/win-x64/publish/WVCore.Server-win-x64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release win-x86
|
||||
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: ./bin/Release/net7.0/win-x86/publish/*
|
||||
asset_name: WVCore.Server-win-x86.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/win-x86/publish/WVCore.Server-win-x86.zip ./bin/Release/net7.0/win-x86/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/win-x86/publish/WVCore.Server-win-x86.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release win-arm64
|
||||
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: ./bin/Release/net7.0/win-arm64/publish/*
|
||||
asset_name: WVCore.Server-win-arm64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/win-arm64/publish/WVCore.Server-win-arm64.zip ./bin/Release/net7.0/win-arm64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/win-arm64/publish/WVCore.Server-win-arm64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release linux-x64
|
||||
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: ./bin/Release/net7.0/linux-x64/publish/*
|
||||
asset_name: WVCore.Server-linux-x64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/linux-x64/publish/WVCore.Server-linux-x64.zip ./bin/Release/net7.0/linux-x64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/linux-x64/publish/WVCore.Server-linux-x64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release linux-musl-x64
|
||||
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: ./bin/Release/net7.0/linux-musl-x64/publish/*
|
||||
asset_name: WVCore.Server-linux-musl-x64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/linux-musl-x64/publish/WVCore.Server-linux-musl-x64.zip ./bin/Release/net7.0/linux-musl-x64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/linux-musl-x64/publish/WVCore.Server-linux-musl-x64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release linux-musl-arm64
|
||||
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: ./bin/Release/net7.0/linux-musl-arm64/publish/*
|
||||
asset_name: WVCore.Server-linux-musl-arm64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/linux-musl-arm64/publish/WVCore.Server-linux-musl-arm64.zip ./bin/Release/net7.0/linux-musl-arm64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/linux-musl-arm64/publish/WVCore.Server-linux-musl-arm64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release linux-arm
|
||||
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: ./bin/Release/net7.0/linux-arm/publish/*
|
||||
asset_name: WVCore.Server-linux-arm.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/linux-arm/publish/WVCore.Server-linux-arm.zip ./bin/Release/net7.0/linux-arm/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/linux-arm/publish/WVCore.Server-linux-arm.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release linux-arm64
|
||||
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: ./bin/Release/net7.0/linux-arm64/publish/*
|
||||
asset_name: WVCore.Server-linux-arm64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/linux-arm64/publish/WVCore.Server-linux-arm64.zip ./bin/Release/net7.0/linux-arm64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/linux-arm64/publish/WVCore.Server-linux-arm64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release linux-bionic-arm64
|
||||
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: ./bin/Release/net7.0/linux-bionic-arm64/publish/*
|
||||
asset_name: WVCore.Server-linux-bionic-arm64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/linux-bionic-arm64/publish/WVCore.Server-linux-bionic-arm64.zip ./bin/Release/net7.0/linux-bionic-arm64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/linux-bionic-arm64/publish/WVCore.Server-linux-bionic-arm64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
- name: Release osx-x64
|
||||
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: ./bin/Release/net7.0/osx-x64/publish/*
|
||||
asset_name: WVCore.Server-osx-x64.zip
|
||||
asset_content_type: application/zip
|
||||
|
||||
- name: Release osx-arm64
|
||||
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: ./bin/Release/net7.0/osx-arm64/publish/*
|
||||
asset_name: WVCore.Server-osx-arm64.zip
|
||||
asset_content_type: application/zip
|
||||
zip ./bin/Release/net7.0/osx-x64/publish/WVCore.Server-osx-x64.zip ./bin/Release/net7.0/osx-x64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/osx-x64/publish/WVCore.Server-osx-x64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
zip ./bin/Release/net7.0/osx-arm64/publish/WVCore.Server-osx-arm64.zip ./bin/Release/net7.0/osx-arm64/publish/*
|
||||
gh release upload ${{ github.run_id }} ./bin/Release/net7.0/osx-arm64/publish/WVCore.Server-osx-arm64.zip -R FoxRefire/WVCore.Server
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user