fix: prevent creation of nightly release with draf==true

Sometime the nightly pre-release would be in "draft" status on github.
It's hard to reproduce but I had the guess that maybe the deletion of
old tag and release on the github side wasn't quite done when the
new release was being created. Of course only speculation...
But, moving the download of the artifacts in betweent these two steps
seems to have fixed the symptom.
This commit is contained in:
Christoph Hasse 2021-06-03 19:52:04 +02:00 committed by Christoph Hasse
parent f30022d73d
commit f8962224fd

View File

@ -151,9 +151,6 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/download-artifact@v2
- name: List downloaded files
run: tree -L 3
- if: github.event_name == 'workflow_dispatch'
run: echo "TAG_NAME=${{ github.event.inputs.tag_name }}" >> $GITHUB_ENV
@ -216,6 +213,9 @@ jobs:
console.log( "Failed with error\n", error);
}
- uses: actions/download-artifact@v2
- name: List downloaded files
run: tree -L 3
- uses: softprops/action-gh-release@v1
env: