Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/nightly.yml
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]
Copy link

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why v4?

Copy link

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

with:
fetch-depth: 1
Comment on lines +17 to +18
Copy link

Choose a reason for hiding this comment

The 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'
Copy link

Choose a reason for hiding this comment

The 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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name should give out what it does, it's zipping the builded files, also yes it's in the workflow
image

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}}