Skip to content

Merge pull request #28 from peppy/static-db-helper #31

Merge pull request #28 from peppy/static-db-helper

Merge pull request #28 from peppy/static-db-helper #31

Workflow file for this run

name: Pack
on:
push:
tags: '*'
jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
source-url: https://nuget.pkg.github.com/ppy/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Create package
run: dotnet pack --configuration Release /p:Version=${{ steps.get_version.outputs.VERSION }}
- name: Publish the package to nuget.org
run: dotnet nuget push osu.Server.QueueProcessor/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false