forked from BonneCW/GD3D11
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use actions for nightly creation
- Loading branch information
Showing
1 changed file
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,21 +102,22 @@ jobs: | |
run: | | ||
(Get-FileHash "${{env.RELEASE_DIR}}.zip" -Algorithm SHA256).hash | Out-File -FilePath "${{env.RELEASE_DIR}}.zip.sha256" | ||
type "${{env.RELEASE_DIR}}.zip.sha256" | ||
- name: Create nightly github release | ||
- name: Delete old nightly | ||
if: github.ref_name == 'master' | ||
run: | | ||
gh release delete nightly --yes --cleanup-tag | ||
gh release create nightly --prerelease --title "Nightly" --notes "Generated release from GitHub Actions" | ||
echo "Ignore 'Validation Failed' results. Expected since only the first job that reaches this step can create the release." | ||
exit 0 | ||
uses: dev-drprasad/[email protected] | ||
with: | ||
delete_release: true | ||
tag_name: nightly | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Upload artifacts to github release | ||
if: github.ref_name == 'master' | ||
run: | | ||
gh release upload nightly "${{env.RELEASE_DIR}}.zip" --clobber | ||
gh release upload nightly "${{env.RELEASE_DIR}}.zip.sha256" --clobber | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Create new nightly | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
name: Nightly | ||
generateReleaseNotes: true | ||
prerelease: true | ||
artifacts: "${{env.RELEASE_DIR}}.zip,{{env.RELEASE_DIR}}.zip.sha256" | ||
tag: nightly | ||
token: ${{ secrets.GITHUB_TOKEN }} |