Compare commits

..

5 Commits

Author SHA1 Message Date
e320d8fbd5 fucking m*crosoft
Some checks failed
Release / Get Version (push) Successful in 14s
Release / Build and Publish Package (push) Successful in 5m45s
Release / Build and Publish Nuget (push) Failing after 8m5s
2024-01-28 12:54:48 +00:00
2d28ce7415 Update .github/workflows/release.yaml
Some checks failed
Release / Get Version (push) Successful in 18s
Release / Build and Publish Package (push) Successful in 6m35s
Release / Build and Publish Nuget (push) Failing after 11m48s
2024-01-28 12:38:34 +00:00
fd64c77aed Update .github/workflows/release.yaml
Some checks failed
Release / Get Version (push) Successful in 12s
Release / Build and Publish Nuget (push) Failing after 2m40s
Release / Build and Publish Package (push) Successful in 3m41s
2024-01-17 10:16:24 +00:00
aeaf755d08 Update .github/workflows/release.yaml
Some checks failed
Release / Get Version (push) Successful in 12s
Release / Build and Publish Nuget (push) Failing after 5m20s
Release / Build and Publish Package (push) Successful in 6m2s
2024-01-17 09:53:00 +00:00
667f52f33b Update .github/workflows/release.yaml
Some checks failed
Release / Get Version (push) Successful in 27s
Release / Build and Publish Nuget (push) Failing after 2m1s
Release / Build and Publish Package (push) Failing after 2m56s
2024-01-16 17:49:07 +00:00

View File

@@ -23,7 +23,11 @@ jobs:
- name: Git Version - name: Git Version
id: version id: version
uses: codacy/git-version@2.7.1 uses: paulhatch/semantic-version@v5.3.0
with:
tag_prefix: ''
major_pattern: 'breaking:'
minor_pattern: 'feature:'
build-nuget: build-nuget:
name: Build and Publish Nuget name: Build and Publish Nuget
@@ -38,6 +42,19 @@ jobs:
with: with:
dotnet-version: '8.0.x' dotnet-version: '8.0.x'
- name: Intall mono
run: |
curl -fsSL https://download.mono-project.com/repo/xamarin.gpg | gpg --dearmor -o /usr/share/keyrings/mono-official-stable.gpg
echo "deb [signed-by=/usr/share/keyrings/mono-official-stable.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" > /etc/apt/sources.list.d/mono-official-stable.list
apt-get update
apt-get install -y --no-install-recommends apt-transport-https mono-complete
- uses: nuget/setup-nuget@v1
name: Setup nuget cli
with:
nuget-version: '5.x'
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore Torch.Server/Torch.Server.csproj --locked-mode run: dotnet restore Torch.Server/Torch.Server.csproj --locked-mode
@@ -59,11 +76,11 @@ jobs:
SLEET_FEED_SERVICEURL: https://storage.yandexcloud.net SLEET_FEED_SERVICEURL: https://storage.yandexcloud.net
SLEET_FEED_ACCESSKEYID: ${{ secrets.S3_KEY_ID }} SLEET_FEED_ACCESSKEYID: ${{ secrets.S3_KEY_ID }}
SLEET_FEED_SECRETACCESSKEY: ${{ secrets.S3_KEY }} SLEET_FEED_SECRETACCESSKEY: ${{ secrets.S3_KEY }}
run: sleet push ./pack run: /root/.dotnet/tools/sleet push ./pack
build: build:
name: Build and Publish Package name: Build and Publish Package
runs-on: windows-latest runs-on: ubuntu-latest
needs: [get-version] needs: [get-version]
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
@@ -84,32 +101,15 @@ jobs:
name: Zip Release name: Zip Release
with: with:
files: publish/ files: publish/
dest: release.zip dest: torch-server.zip
- name: Create release - name: Create Release
id: create_release uses: akkuman/gitea-release-action@v1
uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with: with:
tag_name: ${{ needs.get-version.outputs.version }} tag_name: ${{ needs.get-version.outputs.version }}
release_name: Release v${{ needs.get-version.outputs.version }} name: Release v${{ needs.get-version.outputs.version }}
body: ${{ steps.github_release.outputs.changelog }} body: ${{ steps.github_release.outputs.changelog }}
draft: true files: |-
prerelease: false ./torch-server.zip
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: release.zip
asset_name: torch-server.zip
asset_content_type: application/zip
- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}