Skip to content

Commit b305b2c

Browse files
committed
Fix workflows
1 parent 9b1a84b commit b305b2c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
3131
- name: Build
3232
run: |
3333
dotnet build -c Release
34-
dotnet pack -c Release --no-build -o ./bin/dist
35-
# Copy the built DLL to dist folder
34+
# Create dist folder and copy the built DLL for release
35+
mkdir -p ./bin/dist/
3636
cp ./BepisModSettings/bin/Release/BepisModSettings.dll ./bin/dist/
3737
- name: Create Thunderstore Package
3838
run: |
@@ -43,6 +43,5 @@ jobs:
4343
with:
4444
name: BepisModSettings-${{ steps.info.outputs.version }}-${{ steps.info.outputs.sha_short }}
4545
path: |
46-
./bin/dist/*.nupkg
4746
./bin/dist/*.dll
4847
./build/*.zip

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ on:
1818
jobs:
1919
release:
2020
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
2123
steps:
2224
- uses: actions/checkout@v3
2325
with:
@@ -39,7 +41,8 @@ jobs:
3941
- name: Build
4042
run: |
4143
dotnet build -c Release
42-
# Copy the built DLL to dist folder for release
44+
# Create dist folder and copy the built DLL for release
45+
mkdir -p ./bin/dist/
4346
cp ./BepisModSettings/bin/Release/BepisModSettings.dll ./bin/dist/
4447
- name: Create Thunderstore Package
4548
run: |

0 commit comments

Comments
 (0)