Skip to content

Commit

Permalink
WIP 17
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan committed Apr 5, 2024
1 parent d8372dd commit e2f27ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
43 changes: 21 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,32 @@ jobs:
steps:
- uses: actions/checkout@v4

# - name: Install vendor
# run: |
# curl ${{ secrets.VENDOR_URL }} -o vendor.zip
# yarn vendor:unpack
# rm vendor.zip

# # - uses: actions/cache@v3
# # with:
# # path: Library
# # key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
# # restore-keys: |
# # Library-

# - uses: game-ci/unity-builder@v4
# env:
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
- name: Install vendor
run: |
curl ${{ secrets.VENDOR_URL }} -o vendor.zip
yarn vendor:unpack
rm vendor.zip
# - uses: actions/cache@v3
# with:
# targetPlatform: ${{ inputs.target_platform }}
# customParameters: ${{ inputs.custom_parameters }}
# path: Library
# key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
# restore-keys: |
# Library-

- uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: ${{ inputs.target_platform }}
customParameters: ${{ inputs.custom_parameters }}

- uses: actions/upload-artifact@v4
with:
name: Build-${{ inputs.target_platform }}
# path: build/${{ inputs.target_platform }}
path: Assets/test
path: build/${{ inputs.target_platform }}

- id: output_artifact_name
run: echo "artifact_name=Build-${{ inputs.target_platform }}" >> $GITHUB_OUTPUT
2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
name: ${{ needs.build.outputs.artifact_name }}
run-id: ${{ needs.build.outputs.run_id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
path: public

- run: dir
- run: dir public

0 comments on commit e2f27ba

Please sign in to comment.