-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added nightly workflow #862
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Nightly release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- workflow | ||
|
||
jobs: | ||
nightly: | ||
|
||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
Comment on lines
+17
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not required, is it? |
||
|
||
- name: Build with npm | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 10.15 | ||
biast12 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
- name: ZIP Executable | ||
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see this step in this workflow. - Copy and paste error? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
uses: vimtor/action-zip@v1 | ||
with: | ||
files: build/_h5ai | ||
dest: _h5ai.zip | ||
|
||
- name: Upload Nightly build | ||
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false' | ||
uses: WebFreak001/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
upload_url: https://uploads.github.com/repos/biast12/h5ai/releases/118815966/assets{?name,label} | ||
release_id: 118815966 | ||
asset_path: ./_h5ai.zip | ||
asset_name: _h5ai.zip | ||
asset_content_type: application/zip | ||
max_releases: 1 | ||
|
||
- name: Update 'nightly' tag | ||
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false' | ||
uses: richardsimko/[email protected] | ||
with: | ||
tag_name: 'nightly' | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the full version? Why not v4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why v4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because its the latest release with a newer NodeJS version and will not lead to depreciation warnings. See https://github.com/actions/checkout/releases/tag/v4.0.0