Update pack-zgm-pbo-files.yaml
This commit is contained in:
@@ -1,13 +1,22 @@
|
|||||||
name: Pack ZGM mission PBO files
|
name: Pack ZGM mission PBO files
|
||||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
GetMissionList:
|
GetMissionList:
|
||||||
|
name: Get ZGM mission list
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
steps:
|
steps:
|
||||||
|
- name: Diagnostics
|
||||||
|
run: |
|
||||||
|
echo "repository: ${{ gitea.repository }}"
|
||||||
|
echo "ref: ${{ gitea.ref }}"
|
||||||
|
echo "ref_name: ${{ gitea.ref_name }}"
|
||||||
|
echo "sha: ${{ gitea.sha }}"
|
||||||
|
echo "api_url: ${{ gitea.api_url }}"
|
||||||
|
echo "workflow: ${{ gitea.workflow }}"
|
||||||
|
|
||||||
- name: Checkout missions
|
- name: Checkout missions
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -18,11 +27,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Get mission list
|
- name: Get mission list
|
||||||
run: |
|
run: |
|
||||||
Get-ChildItem MissionsForZGM/missions/*
|
Get-ChildItem MissionsForZGM/*
|
||||||
|
|
||||||
CreatePboFiles:
|
CreatePboFiles:
|
||||||
|
name: Create PBO files
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
steps:
|
steps:
|
||||||
|
- name: Diagnostics
|
||||||
|
run: |
|
||||||
|
echo "repository: ${{ gitea.repository }}"
|
||||||
|
echo "ref: ${{ gitea.ref }}"
|
||||||
|
echo "ref_name: ${{ gitea.ref_name }}"
|
||||||
|
echo "sha: ${{ gitea.sha }}"
|
||||||
|
echo "api_url: ${{ gitea.api_url }}"
|
||||||
|
echo "workflow: ${{ gitea.workflow }}"
|
||||||
|
|
||||||
- name: Checkout template
|
- name: Checkout template
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
@@ -36,6 +55,7 @@ jobs:
|
|||||||
Remove-Item -Recurse template\aaFrameworkUtils
|
Remove-Item -Recurse template\aaFrameworkUtils
|
||||||
Remove-Item -Recurse template\framework\x
|
Remove-Item -Recurse template\framework\x
|
||||||
Remove-Item -Recurse template\.git*
|
Remove-Item -Recurse template\.git*
|
||||||
|
Remove-Item -Recurse template\.git
|
||||||
|
|
||||||
- name: Checkout missions
|
- name: Checkout missions
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -55,7 +75,9 @@ jobs:
|
|||||||
Get-ChildItem zgm-files
|
Get-ChildItem zgm-files
|
||||||
|
|
||||||
- name: Prepare tools
|
- name: Prepare tools
|
||||||
run: mkdir packed-files
|
run: |
|
||||||
|
mkdir packed-files
|
||||||
|
Remove-Item -Recurse template\.git
|
||||||
|
|
||||||
- name: Pack PBOs
|
- name: Pack PBOs
|
||||||
run: |
|
run: |
|
||||||
@@ -74,7 +96,7 @@ jobs:
|
|||||||
$missionName = $missionName.Matches.groups[1].value
|
$missionName = $missionName.Matches.groups[1].value
|
||||||
(Get-Content .\template\mission.sqm).Replace($missionName,"FRAMEWORK ZGM $date") | Set-Content .\template\mission.sqm
|
(Get-Content .\template\mission.sqm).Replace($missionName,"FRAMEWORK ZGM $date") | Set-Content .\template\mission.sqm
|
||||||
|
|
||||||
zgm-files\tools\PBOconsole.exe -pack template packed-files\mission.$map.pbo
|
zgm-files\tools\PBOconsole.exe -pack template packed-files\BASE_ZGM_$date.$map.pbo
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: List PBOs
|
- name: List PBOs
|
||||||
|
|||||||
Reference in New Issue
Block a user