Skip to content

Commit 78b042a

Browse files
committed
Merge remote-tracking branch 'remotes/origin/main' into dev
2 parents 96ded33 + 4320f88 commit 78b042a

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ jobs:
172172
permissions:
173173
id-token: write
174174
attestations: write
175+
packages: write
176+
contents: write
175177

176178
steps:
177179
- name: Checkout code
@@ -192,27 +194,24 @@ jobs:
192194
unzip out/${{ env.PLUGIN_NAME }}-generic.zip -d attest_provenance
193195
cp --archive out/${{ env.PLUGIN_NAME }}-generic.zip attest_provenance
194196
197+
- name: Clean up dll files
198+
run: |
199+
pushd attest_provenance/${{ env.PLUGIN_NAME }}
200+
rm -rf NLog.dll SteamKit2.dll System.IO.Hashing.dll protobuf-net.Core.dll protobuf-net.dll
201+
popd
202+
195203
- uses: actions/attest-build-provenance@v1
196204
with:
197-
subject-path: 'attest_provenance/*'
205+
subject-path: 'attest_provenance/*'
198206

199207
- name: Create GitHub release
200208
id: github_release
201-
uses: actions/create-release@v1.1.4
202-
env:
203-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209+
uses: softprops/action-gh-release@v2.0.8
204210
with:
205211
tag_name: ${{ github.ref }}
206-
release_name: ${{ env.PLUGIN_NAME }} ${{ github.ref }}
212+
name: ${{ env.PLUGIN_NAME }} ${{ github.ref }}
207213
body_path: .github/RELEASE_TEMPLATE.md
208214
prerelease: true
209-
210-
- name: Upload generic to GitHub release
211-
uses: actions/upload-release-asset@v1.0.2
212-
env:
213-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214-
with:
215-
upload_url: ${{ steps.github_release.outputs.upload_url }}
216-
asset_path: out/${{ env.PLUGIN_NAME }}-generic.zip
217-
asset_name: ${{ env.PLUGIN_NAME }}-generic.zip
218-
asset_content_type: application/zip
215+
files: |
216+
out/${{ env.PLUGIN_NAME }}-generic.zip
217+
attest_provenance/${{ env.PLUGIN_NAME }}/ASFFreeGames.dll

0 commit comments

Comments
 (0)