Skip to content

Commit 360643d

Browse files
committed
add automated build workflow
1 parent 9d739ac commit 360643d

File tree

6 files changed

+56
-3
lines changed

6 files changed

+56
-3
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build releases
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
id-token: write # for attestation
8+
attestations: write # for attestation
9+
env:
10+
RELEASE_REF: refs/heads/main # pushes to this branch are treated as public releases
11+
12+
steps:
13+
- name: Fetch code
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-tags: false
17+
18+
- name: Add build environment
19+
uses: Pathoschild/SMAPI-ModBuildWorkflow/add-build-environment@v1
20+
21+
- name: Set prerelease versions
22+
uses: Pathoschild/SMAPI-ModBuildWorkflow/set-prerelease-versions@v1
23+
with:
24+
only_zipped: false # Bouhm's Pet Dogs is zipped in custom MSBuild code since it has no C# component
25+
if: github.ref != env.RELEASE_REF
26+
27+
- name: Build mods
28+
run: dotnet build
29+
30+
- name: Show _releases
31+
run: dir _releases
32+
33+
- name: Upload release zips
34+
uses: Pathoschild/SMAPI-ModBuildWorkflow/upload-release-artifacts@v1
35+
with:
36+
create_attestations: ${{github.ref == env.RELEASE_REF}}
37+
create_combined_zip: "all-mods"

Bouhm.Stardew.slnx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<File Path="Directory.Packages.props" />
1212
<File Path="README.md" />
1313
</Folder>
14+
<Folder Name="/root/.github/" />
15+
<Folder Name="/root/.github/workflows/">
16+
<File Path=".github/workflows/build.yml" />
17+
</Folder>
1418
<Project Path="Bouhm.Shared/Bouhm.Shared.shproj" />
1519
<Project Path="LocationCompass/LocationCompass.csproj" />
1620
<Project Path="NPCMapLocations/NPCMapLocations.csproj" />

LocationCompass/docs/release-notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[← back to readme](README.md)
22

33
# Release notes
4+
## Upcoming release
5+
* NPC Location Compass downloads are now created via [automated and attested builds](https://www.patreon.com/posts/automated-builds-148417912).
6+
_This guarantees that the download only contains what's in the public source code and hasn't been tampered with._
7+
48
## 1.5.2
59
Released 11 January 2026 for SMAPI 4.1.2 or later. Updated by Pathoschild.
610

NPCMapLocations/docs/release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Release notes
44
## Upcoming release
55
* Improved NPC marker hover positions for tooltips.
6+
* NPC Map Locations downloads are now created via [automated and attested builds](https://www.patreon.com/posts/automated-builds-148417912).
7+
_This guarantees that the download only contains what's in the public source code and hasn't been tampered with._
68
* Fixed hidden NPCs not hidden correctly in 3.5.0.
79
* Fixed Fizz icon crop in default mode.
810
* Improved translations. Thanks to ellatuk (updated Russian), jjongleee (updated Korean), Maatsuki (updated Portuguese), and shirutan (updated Japanese)!

PetDogs/PetDogs.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
<SourcePath>$(TargetDir)\$(ContentPackFolderName)</SourcePath>
2626
<StagingPath>$(TargetDir)\packaged\$(ContentPackFolderName)</StagingPath>
2727
<InstalledPath>$(GameModsPath)\$(ContentPackFolderName)</InstalledPath>
28-
<ZippedPath>$(SolutionDir)\_releases\$(ContentPackFolderName) $(Version).zip</ZippedPath>
28+
<ZipToFolderPath>$(SolutionDir)\_releases</ZipToFolderPath>
29+
<ZipToFileName>$(ContentPackFolderName) $(Version).zip</ZipToFileName>
2930
</PropertyGroup>
3031

3132
<!--create release folder-->
@@ -47,7 +48,8 @@
4748
<Copy SourceFiles="@(StagingDirFiles)" DestinationFolder="$(InstalledPath)\%(RecursiveDir)" />
4849

4950
<!--create release zip-->
50-
<Delete Files="$(ZippedPath)" />
51-
<ZipDirectory SourceDirectory="$(StagingPath)\.." DestinationFile="$(ZippedPath)" />
51+
<MakeDir Directories="$(ZipToFolderPath)" />
52+
<Delete Files="$(ZipToFolderPath)\$(ZipToFileName)" />
53+
<ZipDirectory SourceDirectory="$(StagingPath)\.." DestinationFile="$(ZipToFolderPath)\$(ZipToFileName)" />
5254
</Target>
5355
</Project>

PetDogs/docs/release-notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[← back to readme](README.md)
22

33
# Release notes
4+
## Upcoming release
5+
* Bouhm's Pet Dogs downloads are now created via [automated and attested builds](https://www.patreon.com/posts/automated-builds-148417912).
6+
_This guarantees that the download only contains what's in the public source code and hasn't been tampered with._
7+
48
## 3.0.1
59
Released 25 May 2025 for SMAPI 4.0.0 or later. Updated by Pathoschild.
610

0 commit comments

Comments
 (0)