优先使用本地ipv6获取方式 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Release | |
on: | |
push: | |
tags: ["*"] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Publish win-x64 | |
run: dotnet publish -c win-x64 | |
- name: Publish linux-x64 | |
run: dotnet publish -c linux-x64 | |
- name: Publish linux-arm64 | |
run: dotnet publish -c linux-arm64 | |
- name: Publish osx-x64 | |
run: dotnet publish -c osx-x64 | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
release/net6.0/win-x64/publish/* | |
release/net6.0/osx-x64/publish/* | |
release/net6.0/linux-x64/publish/* | |
release/net6.0/linux-arm64/publish/* |