I'm using Github Actions to build my project and upload artifacts to Github with the following part of workflow:
- uses: actions/upload-artifact@v2
with:
name: some-file
path: some-path
Problem is that artifacts are quite big and consume available storage quota quickly. And also I don't even need all of them, just ones from the latest build on each branch.
Setting up retention period is not a solution because it will also delete artifacts from the latest build.