Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroHeavenVN committed Jun 10, 2024
1 parent 0970954 commit ccb9d11
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lấy hash commit mới nhất của branch Unity-project
- name: Lấy hash commit mới nhất
run: |
$commit = git ls-remote https://github.com/${{ secrets.SOURCE_CODE_REPOSITORY }}.git Unity-project
$commit = git ls-remote https://github.com/${{ secrets.SOURCE_CODE_REPOSITORY }}.git ${{ secrets.SOURCE_CODE_BRANCH }}
$hash = $commit.Split("`t")[0]
echo "LATEST_COMMIT=$hash" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Cache hash commit
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Cache
id: cache-restore
uses: actions/cache@v4
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Cache
uses: actions/cache@v4
id: cache-restore
Expand Down Expand Up @@ -261,7 +261,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Giải phóng bộ nhớ
uses: jlumbroso/[email protected]
- name: Cache
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/selective-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
uses: actions/checkout@v4
- name: Lấy hash commit mới nhất
run: |
$commit = git ls-remote https://github.com/${{ secrets.SOURCE_CODE_REPOSITORY }}.git Unity-project
$commit = git ls-remote https://github.com/${{ secrets.SOURCE_CODE_REPOSITORY }}.git ${{ secrets.SOURCE_CODE_BRANCH }}
$hash = $commit.Split("`t")[0]
echo "LATEST_COMMIT=$hash" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Cache hash commit
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Cache
id: cache-restore
uses: actions/cache@v4
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Cache
uses: actions/cache@v4
id: cache-restore
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: ${{ secrets.SOURCE_CODE_REPOSITORY }}
ref: Unity-project
ref: ${{ secrets.SOURCE_CODE_BRANCH }}
- name: Giải phóng bộ nhớ
uses: jlumbroso/[email protected]
- name: Cache
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Có 2 phương pháp để tải xuống:
- Ở trường `Name`, nhập `SOURCE_CODE_REPOSITORY`, trường `Secret` nhập `pk9r327/Dragonboy`, hoặc đường dẫn tới fork của bạn (nếu bạn muốn biên dịch từ fork của riêng bạn).
- Nhấn `Add secret`.
- Làm lại các bước trên với giá trị của trường `Name` và trường `Secret` lần lượt như sau:
+ `SOURCE_CODE_BRANCH`: nhánh bạn muốn biên dịch, nếu phần `SOURCE_CODE_REPOSITORY` có giá trị là `pk9r327/Dragonboy` thì nhập `Unity-project`
+ `UNITY_EMAIL`: email bạn dùng để tạo tài khoản Unity
+ `UNITY_PASSWORD`: mật khẩu tài khoản Unity của bạn
+ `UNITY_LICENSE`: nội dung tệp `Unity_lic.ulf` (tham khảo tài liệu của [GameCI](https://game.ci/) [tại đây](https://game.ci/docs/github/activation/#activating-a-license-file) để biết đường dẫn tệp `Unity_lic.ulf`)
Expand Down
1 change: 1 addition & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ To build the [Dragonboy](https://github.com/pk9r327/Dragonboy/tree/Unity-project
- In the `Name` field, enter `SOURCE_CODE_REPOSITORY`, and in the `Secret` field, enter `pk9r327/Dragonboy`, or the path to your fork (if you want to compile the game from your own fork).
- Click `Add secret` to add the secret.
- Repeat the above steps with the values of the `Name` field and `Secret` field as follows:
+ `SOURCE_CODE_BRANCH`: branch you want to compile, if the `SOURCE_CODE_REPOSITORY` secret value is `pk9r327/Dragonboy` then enter `Unity-project`
+ `UNITY_EMAIL`: the email you used to create your Unity account
+ `UNITY_PASSWORD`: your Unity account password
+ `UNITY_LICENSE`: the content of the `Unity_lic.ulf` file (refer to the [GameCI](https://game.ci/)'s documentation [here](https://game.ci/docs/github/activation/#activating-a-license-file) for the path to the `Unity_lic.ulf` file)
Expand Down

0 comments on commit ccb9d11

Please sign in to comment.