Skip to content

Add availabilities to the REST API client (#33) #17

Add availabilities to the REST API client (#33)

Add availabilities to the REST API client (#33) #17

Workflow file for this run

name: Release
on:
push:
tags:
- "v**"
jobs:
build:
defaults:
run:
working-directory: src/Meplato.Store2
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
# ----- SETUP
- name: Setup MSBuild path
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
# ----- BUILD
# Do not use `dotnet restore`, it ignores packages.config
- name: Restore NuGet packages
run: nuget restore -SolutionDir ..
- name: Build
run: msbuild -t:Build -p:Configuration=Release
# ----- NUGET RELEASE
- name: Build Nupgks
run: |
$tag = ${env:GITHUB_REF}.Substring(11)
nuget pack Meplato.Store2.csproj -Properties Configuration=Release -Version ${tag}
- name: Push to Nuget.org
run: nuget push -ApiKey ${{ secrets.NUGET_KEY }} -Source https://api.nuget.org/v3/index.json Meplato.Store2*.nupkg
# ----- GITHUB RELEASE
- name: Install hub
uses: geertvdc/setup-hub@master
- name: run hub commands
env:
GITHUB_USER: ${{ secrets.GITHUB_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$tag = ${env:GITHUB_REF}.Substring(10)
hub release create --attach bin\Release\Meplato.Store2.dll -m "Release ${tag}" ${tag}