I’m pretty new to GitHub Actions and I’m searching a way to create a simple release draft (or update the latest) as the last step in my workflow with the latest uploaded artifact included.
My current workflow file:
name: .NET
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
name: "Build"
steps:
- uses: actions/checkout@master
with:
submodules: true
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x' # SDK Version to use;
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish '${{ runner.workspace }}/ERModsMerger/ERModsMerger/ERModsMerger.csproj' -p:PublishProfile=FolderProfile
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: 'ERModsMerger-SHA${{ github.sha }}'
path: '${{ runner.workspace }}/ERModsMerger/ERModsMerger/bin/Publish'
It’s open source so it can also be found here
Do you have any ideas of how I can achieve this?
Thanks in advance 🙂
Honestly I didn’t tried much as I don’t want to bloat with commits and failed builds my repos, I did check possible solutions using release-drafter but I’m not really sure how to implement it in my current code.