Skip to content

Commit

Permalink
fixing the pipeline for releases (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingalek authored Dec 18, 2020
1 parent 0dbea45 commit 6832779
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
INTERNAL_PKG_KEY: ${{ secrets.INTERNAL_PKG_KEY }}
outputs:
version: ${{ steps.version.outputs.prop }}
steps:
- uses: actions/checkout@v2

Expand Down Expand Up @@ -71,7 +73,7 @@ jobs:
path: src\OWML.Launcher\bin\Debug\OWML.zip

nuget:
runs-on: ubuntu-latest
runs-on: windows-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
Expand All @@ -80,31 +82,29 @@ jobs:
with:
name: owml-nuget
- name: publish
uses: myci-actions/publish-nuget@2 # todo untested
uses: myci-actions/publish-nuget@2
with:
filename: OWML.*.nupkg
api-key: ${{ secrets.NUGET_KEY }}

release:
runs-on: ubuntu-latest
needs: nuget
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: download artifact
uses: actions/download-artifact@v2
with:
name: owml-zip
- name: create release # todo untested
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.prop }}
release_name: ${{ steps.version.outputs.prop }}
draft: true # todo
prerelease: true # todo
- name: upload zip to release # todo untested
tag_name: ${{ needs.build.outputs.version }}
release_name: ${{ needs.build.outputs.version }}
- name: upload zip to release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 6832779

Please sign in to comment.