Skip to content

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
Builds and publishes to Yak on release
  • Loading branch information
lin-ycv authored Aug 30, 2022
1 parent e1dfd34 commit 8f3b205
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to PackageManager

on:
release:
type: [published]

workflow_dispatch:


jobs:
build:
runs-on: windows-latest
env:
YAK_TOKEN: ${{ secrets.YAK_TOKEN }}

steps:
- uses: actions/checkout@v3
- name: setup-msbuild
uses: microsoft/[email protected]
with:
msbuild-architecture: x64

- name: Build Solution
run: msbuild Melanoplus.sln -t:build -restore -m -p:RestorePackagesConfig=true,Configuration=Release

- name: Get Manifest and Push
run: |
curl https://files.mcneel.com/yak/tools/latest/yak.exe -o yak.exe
cd bin
curl https://raw.githubusercontent.com/lin-ycv/Melanoplus/Docs/manifest.yml -o manifest.yml
curl https://raw.githubusercontent.com/lin-ycv/Melanoplus/main/Resources/MelanoplusSimple.png -o Melanoplus.png
..\yak.exe build --platform 'any'
$YAK_FILENAME = dir *.yak
..\yak.exe push $YAK_FILENAME.Name

0 comments on commit 8f3b205

Please sign in to comment.