Skip to content

Commit

Permalink
Merge pull request #6 from SpaceWarpDev/dev
Browse files Browse the repository at this point in the history
Version 1.8.0.6
  • Loading branch information
jan-bures authored Jan 28, 2024
2 parents ad24676 + 87d2b58 commit 1888aae
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish template release

on:
push

jobs:
publish:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Download NuGet
id: download-nuget
run: sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe

- name: Install jq
uses: dcarbone/[email protected]

- name: Build template
id: build-template
run: pwsh -NoProfile -ExecutionPolicy Bypass -File "BuildPackage.ps1"

- name: Extract current version
id: get-version
run: |
filepath=$(ls -1 dist/SpaceWarp.Template.*.nupkg | head -n 1)
filename=$(basename $filepath)
echo "Artifact name is $filename"
echo "artifact_name=$filename" >> $GITHUB_ENV
echo "artifact_path=$filepath" >> $GITHUB_ENV
- name: Upload zip as artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.artifact_name }}
path: ${{ env.artifact_path }}
2 changes: 1 addition & 1 deletion BuildPackage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Get-ChildItem -Path "$BuildFolderPath/templates" -Directory | ForEach-Object {
$currentTemplateName = $_.Name
$Replacements["SpaceWarpTemplateName"] = $currentTemplateName

Get-ChildItem -Path $_.FullName -Recurse -File | ForEach-Object {
Get-ChildItem -Path $_.FullName -Recurse -File -Force | ForEach-Object {
if ($skipExtensions -contains $_.Extension) {
Write-Host "Skipped binary file ""$($_.Name)"""
} else {
Expand Down
2 changes: 1 addition & 1 deletion Package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>SpaceWarp.Template</id>
<version>1.8.0.5</version>
<version>1.8.0.6</version>
<authors>munix</authors>
<title>SpaceWarp Mod Template</title>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down

0 comments on commit 1888aae

Please sign in to comment.