Update pack-zgm-pbo-files.yaml
This commit is contained in:
@@ -1,13 +1,22 @@
|
||||
name: Pack ZGM mission PBO files
|
||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
GetMissionList:
|
||||
name: Get ZGM mission list
|
||||
runs-on: windows
|
||||
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
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -18,11 +27,21 @@ jobs:
|
||||
|
||||
- name: Get mission list
|
||||
run: |
|
||||
Get-ChildItem MissionsForZGM/missions/*
|
||||
Get-ChildItem MissionsForZGM/*
|
||||
|
||||
CreatePboFiles:
|
||||
name: Create PBO files
|
||||
runs-on: windows
|
||||
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
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
@@ -36,6 +55,7 @@ jobs:
|
||||
Remove-Item -Recurse template\aaFrameworkUtils
|
||||
Remove-Item -Recurse template\framework\x
|
||||
Remove-Item -Recurse template\.git*
|
||||
Remove-Item -Recurse template\.git
|
||||
|
||||
- name: Checkout missions
|
||||
uses: actions/checkout@v3
|
||||
@@ -55,7 +75,9 @@ jobs:
|
||||
Get-ChildItem zgm-files
|
||||
|
||||
- name: Prepare tools
|
||||
run: mkdir packed-files
|
||||
run: |
|
||||
mkdir packed-files
|
||||
Remove-Item -Recurse template\.git
|
||||
|
||||
- name: Pack PBOs
|
||||
run: |
|
||||
@@ -74,7 +96,7 @@ jobs:
|
||||
$missionName = $missionName.Matches.groups[1].value
|
||||
(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
|
||||
|
||||
Reference in New Issue
Block a user