Skip to content

Commit

Permalink
Finish README
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 3, 2024
1 parent 0bbbf6f commit 65f8d68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- build-relwithdebinfo
- build-minsizerel
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Download Release DLL
uses: actions/download-artifact@v4
with:
Expand All @@ -54,7 +57,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: relwithdebinfo-dll
path: out/build/x86-relwithdebinfo/
path: out/install/x86-relwithdebinfo/
- name: Download RelWithDebInfo VDF
uses: actions/download-artifact@v4
with:
Expand All @@ -64,29 +67,27 @@ jobs:
uses: actions/download-artifact@v4
with:
name: minsizerel-dll
path: out/build/x86-minsizerel/
path: out/install/x86-minsizerel/
- name: Download MinSizeRel VDF
uses: actions/download-artifact@v4
with:
name: minsizerel-vdf
path: out/install/x86-minsizerel/
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Prepare Release Files
id: prepare-release
shell: powershell
env:
GITHUB_REF: ${{ github.ref_name }}
run: |
tree /F
$project = (Get-Content -Path Configuration.cmake | Select-String -Pattern "PROJECT_NAME `"([^`"]+)`"").Matches[0].Groups[1].Value
$tag = $env:GITHUB_REF -replace '^refs/tags/', ''
$files = Get-ChildItem -Path out/install/x86-release/ -Exclude *.vdf
Compress-Archive $files $project-${tag}.zip
Copy-Item out/install/x86-release/$project.vdf $project-${tag}.vdf
$files = Get-ChildItem -Path out/install/x86-relwithdebinfo/ -Exclude *.vdf
Compress-Archive $files $project-${tag}-RelWithDebInfo.zip
Copy-Item out/install/x86-relwithdebinfo/$project.vdf $project-${tag}-RelWithDebInfo.vdf
Copy-Item out/install/x86-relwithdebinfo/*.vdf $project-${tag}-RelWithDebInfo.vdf
$files = Get-ChildItem -Path out/install/x86-minsizerel/ -Exclude *.vdf
Compress-Archive $files $project-${tag}-MinSizeRel.zip
Copy-Item out/install/x86-minsizerel/$project.vdf $project-${tag}-MinSizeRel.vdf
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ starting a Union API project and quality of life features:

## Table of Contents

* [Requiements](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#requirements)
* [Requirements](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#requirements)
* [Usage](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#usage)
* [Build](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#build)
* [PowerShell Module](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#powershell-module)
* [Source code structure](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#source-code-structure)
* [Linking other libraries](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#linking-other-libraries)
* [GitHub Actions](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#github-actions)
* [License](https://github.com/piotrmacha/union-api-plugin-template?tab=readme-ov-file#license)

## Requirements

Expand Down Expand Up @@ -329,6 +331,8 @@ set_target_properties(${PLUGIN_LIBRARY} PROPERTIES
# target_link_libraries(${PLUGIN_LIBRARY} PRIVATE SomeLib::SomeTarget)
```

## GitHub Actions

## License

The template is licensed under [MIT License](LICENSE.md).
Expand Down

0 comments on commit 65f8d68

Please sign in to comment.