Skip to content

Commit

Permalink
Revert "Fix output fron step"
Browse files Browse the repository at this point in the history
This reverts commit 1f73300.

Revert "Fix upload artefact"

This reverts commit 2609af3.

Revert "Build and upload artefact into release draft"

This reverts commit 1b77b8e.
  • Loading branch information
kreghek committed Nov 5, 2020
1 parent 1f73300 commit 7b3c1cd
Showing 1 changed file with 0 additions and 86 deletions.
86 changes: 0 additions & 86 deletions .github/workflows/drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,89 +12,3 @@ jobs:
- uses: release-drafter/release-drafter@v5.12.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
buildCore:
name: Build core libs
runs-on: ubuntu-latest
strategy:
matrix:
core_project:
- Zilon.Core
- Zilon.Bot.Players
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- run: dotnet publish Zilon.Core/${{ matrix.core_project }}/${{ matrix.core_project }}.csproj -c Release -f netstandard2.0 -o bin
- uses: actions/upload-artifact@v1
with:
name: CoreLibs
path: bin
buildForSomePlatforms:
name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
runs-on: ubuntu-latest
needs: buildCore
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
strategy:
fail-fast: false
matrix:
projectPath:
- Zilon.Client
unityVersion:
- 2020.1.10f1
targetPlatform:
- StandaloneOSX # Build a macOS standalone (Intel 64-bit).
- StandaloneWindows # Build a Windows standalone.
- StandaloneWindows64 # Build a Windows 64-bit standalone.
- StandaloneLinux64 # Build a Linux 64-bit standalone.
outputs:
buildName: ${{ steps.upload-client-artefact.outputs.buildName }}
steps:
- uses: actions/checkout@v2
with:
lfs: true
- uses: actions/checkout@v2
with:
repository: kreghek/Zilon_Roguelike_Plugins
path: ${{ matrix.projectPath }}/Assets/Plugins/
- name: Download core libs from artifatcs
uses: actions/download-artifact@v2
with:
name: CoreLibs
path: ${{ matrix.projectPath }}/Assets/Plugins
- uses: actions/cache@v1.1.0
with:
path: ${{ matrix.projectPath }}/Library
key: Library-${{ matrix.projectPath }}-${{ matrix.targetPlatform }}
restore-keys: |
Library-${{ matrix.projectPath }}-
Library-
- uses: webbertakken/unity-builder@v1.5
with:
projectPath: ${{ matrix.projectPath }}
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
versioning: None # Because this error https://github.com/webbertakken/unity-builder/issues/163
- uses: actions/upload-artifact@v1
id: upload-client-artefact
with:
name: Last.Imperial.Vagabond.${{ matrix.targetPlatform }}
path: build
- id: random-number-generator
run: echo "::set-output name=buildName::Last.Imperial.Vagabond.${{ matrix.targetPlatform }}"
shell: bash
uploadAssets:
needs: [buildForSomePlatforms, update_release_draft]
steps:
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ jobs.update_release_draft.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./Build
asset_name: ${{ jobs.buildForSomePlatforms.outputs.buildName }}
asset_content_type: application/zip

0 comments on commit 7b3c1cd

Please sign in to comment.