mirror of
https://github.com/game-ci/unity-activate
synced 2026-01-29 14:33:26 +08:00
Test the action
This commit is contained in:
17
.github/workflows/main.yml
vendored
Normal file
17
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Actions 😎
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
requestActivation:
|
||||
name: Request activation ✔
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Checkout repository (required to test local actions)
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v1
|
||||
|
||||
# Activate Unity
|
||||
- name: Activate Unity
|
||||
uses: ./
|
||||
env:
|
||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||
14
README.md
14
README.md
@@ -16,6 +16,20 @@ collection too.
|
||||
|
||||
## Usage
|
||||
|
||||
Create or edit the file called `.github/workflows/activation.yml` and add a job to it.
|
||||
|
||||
```yaml
|
||||
name: Acquire activation file
|
||||
on: [push]
|
||||
jobs:
|
||||
requestActivation:
|
||||
name: Request activation ✔
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
```
|
||||
|
||||
Continue to either the personal license or professional license section below.
|
||||
|
||||
#### Personal license
|
||||
|
||||
1. Follow the **activation** section from [request action](https://github.com/marketplace/actions/unity-request-activation-file) to set `UNITY_LICENSE` variable.
|
||||
|
||||
Reference in New Issue
Block a user