Update pack-zgm-pbo-files.yaml
This commit is contained in:
@@ -15,15 +15,10 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
path: missions
|
|
||||||
|
|
||||||
- name: Get mission list
|
- name: Get mission list
|
||||||
run: |
|
run: |
|
||||||
Get-ChildItem missions/*
|
Get-ChildItem MissionsForZGM/missions/*
|
||||||
|
|
||||||
- name: Current Directory
|
|
||||||
run: |
|
|
||||||
Get-Location
|
|
||||||
|
|
||||||
CreatePboFiles:
|
CreatePboFiles:
|
||||||
runs-on: windows
|
runs-on: windows
|
||||||
@@ -51,13 +46,21 @@ jobs:
|
|||||||
token: ${{ secrets.RELEASE_TOKEN }}
|
token: ${{ secrets.RELEASE_TOKEN }}
|
||||||
path: zgm-files
|
path: zgm-files
|
||||||
|
|
||||||
|
- name: Get mission list
|
||||||
|
run: |
|
||||||
|
Get-ChildItem
|
||||||
|
|
||||||
|
- name: Get mission list
|
||||||
|
run: |
|
||||||
|
Get-ChildItem zgm-files
|
||||||
|
|
||||||
- name: Prepare tools
|
- name: Prepare tools
|
||||||
run: mkdir packed-files
|
run: mkdir packed-files
|
||||||
|
|
||||||
- name: Pack PBOs
|
- name: Pack PBOs
|
||||||
run: |
|
run: |
|
||||||
$date = Get-Date -Format "yyyy-MM-dd"
|
$date = Get-Date -Format "yyyy-MM-dd"
|
||||||
foreach ($file in Get-ChildItem zgm-files) {
|
foreach ($file in Get-ChildItem zgm-files\missions) {
|
||||||
$map = (Get-Item zgm-files\missions\$file).Basename.split('\.')[-1]
|
$map = (Get-Item zgm-files\missions\$file).Basename.split('\.')[-1]
|
||||||
Copy-Item zgm-files\missions\$file\mission.sqm template\
|
Copy-Item zgm-files\missions\$file\mission.sqm template\
|
||||||
(Get-Content .\template\mission_settings.hpp).Replace("MISSION AUTHOR","17th Ranger Battalion") | Set-Content .\template\mission_settings.hpp
|
(Get-Content .\template\mission_settings.hpp).Replace("MISSION AUTHOR","17th Ranger Battalion") | Set-Content .\template\mission_settings.hpp
|
||||||
|
|||||||
Reference in New Issue
Block a user