Skip to content

Commit

Permalink
ncipollo/release-action for nightly releases
Browse files Browse the repository at this point in the history
  • Loading branch information
GaZaTu committed Jan 26, 2023
1 parent 6087b49 commit 54b5bd2
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54b5bd2

Please sign in to comment.