unity-actions-example/.github/workflows/manual_activation.yml
Gabriel Le Breton 870cfc8226 Add push: { branches: [main] } so it gets executed once
There seem to be a limitation with workflow_dispatch where job doesn't appear if not triggered at least once. I wonder how this can be solved. 🤔
2020-10-08 10:31:15 -04:00

26 lines
875 B
YAML

name: Acquire activation file
on:
push: { branches: [main] }
workflow_dispatch:
inputs:
unityVersion:
description: 'Unity version to use during activation request'
required: true
default: 2020.1.7f1
jobs:
activation:
name: Request manual activation file 🔑
runs-on: ubuntu-latest
steps:
# Request manual activation file
- name: Request manual activation file
id: getManualLicenseFile
uses: webbertakken/unity-request-manual-activation-file@v1.1
with:
unityVersion: ${{ github.event.inputs.unityVersion }}
# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v1
with:
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
path: ${{ steps.getManualLicenseFile.outputs.filePath }}