diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20c17583..73ff4913 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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: @@ -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: