-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ncipollo/release-action for nightly releases
- Loading branch information
Showing
1 changed file
with
11 additions
and
20 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 |
---|---|---|
|
@@ -150,33 +150,24 @@ jobs: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
|
||
steps: | ||
- name: Create nightly | ||
id: create_release | ||
uses: pajlada/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
tag_name: nightly-build | ||
release_name: Nightly Release | ||
body: | | ||
Nightly Build | ||
prerelease: true | ||
|
||
- name: Download artifacts | ||
id: download_artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: artifacts | ||
|
||
- name: Display downloaded artifacts | ||
run: ls -R ${{steps.download_artifacts.outputs.download-path}} | ||
|
||
- name: Upload release assets | ||
uses: GaZaTu/release-asset-action@v3 | ||
- name: Create nightly | ||
id: create_release | ||
uses: ncipollo/[email protected] | ||
with: | ||
pattern: "${{steps.download_artifacts.outputs.download-path}}/**/*" | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
release-url: ${{steps.create_release.outputs.upload_url}} | ||
removeArtifacts: true | ||
allowUpdates: true | ||
artifactErrorsFailBuild: true | ||
artifacts: "${{steps.download_artifacts.outputs.download-path}}/**/*" | ||
body: ${{github.event.head_commit.message}} | ||
prerelease: true | ||
name: Nightly Release | ||
tag: nightly-build | ||
|
||
create-release: | ||
needs: build-artifact | ||
|