Files
ScreenCapture/.gitea/workflows/activation.yaml
cooney a83ff299e3
All checks were successful
Unity-ALF-The-End-Real / activation (push) Successful in 45s
Proxmox-Runner-Test / hello-job (push) Successful in 3s
Update .gitea/workflows/activation.yaml
2026-04-01 17:51:34 +09:00

48 lines
1.5 KiB
YAML

name: Unity-ALF-The-End-Real
on: [push]
jobs:
activation:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Force Generate ALF
run: |
# 1. 권한 풀기
chmod -R 777 .
# 2. 컨테이너를 띄워서 파일을 만든 뒤, 컨테이너를 죽이지 않고 파일을 복사해옵니다. (Check)
# 컨테이너 이름을 'alf_generator'로 고정해서 띄웁니다.
docker run --name alf_generator -d \
-v "$(pwd):/project" \
-u root \
-w /project \
unityci/editor:ubuntu-2022.3.20f1-base-3 \
tail -f /dev/null
# 3. 실행 중인 컨테이너 안에서 명령어를 직접 때립니다.
docker exec alf_generator unity-editor \
-batchmode \
-nographics \
-createManualActivationFile ./Unity.alf \
-logfile /dev/stdout \
-quit
# 4. 강제로 파일을 밖으로 복사해서 가져옵니다. (필살기)
docker cp alf_generator:/project/Unity.alf ./Unity.alf
# 5. 컨테이너 정리
docker rm -f alf_generator
# 6. 확인
echo "### 이번엔 진짜 파일 있는지 확인 ###"
ls -al Unity.alf
chmod 666 Unity.alf
- name: Upload ALF
uses: actions/upload-artifact@v3
with:
name: Unity-Manual-ALF
path: ./Unity.alf # (Check)