Skip to content
Snippets Groups Projects
Unverified Commit 46ba0af0 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #882 from HumanBrainProject/chore_addRleaseCi

add release ci
parents 5edafcbc 1f34ed82
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ env:
NODE_ENV: test
jobs:
install_dep:
backend:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
......
name: Release CI
on:
pull_request:
branches:
- master
jobs:
check_version:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: |
MASTER_VERSION=$(git show origin/master:package.json | jq '.version')
THIS_VERSION=$(jq '.version' < package.json)
test "$MASTER_VERSION" == "$THIS_VERSION" && exit 1 || exit 0
check_release:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: |
VERSION_NUM=$(jq '.version' < package.json)
VERSION_NUM=${VERSION_NUM#\"}
VERSION_NUM=${VERSION_NUM%\"}
test -f docs/releases/v$VERSION_NUM.md && exit 0 || exit 1
release_linked_mkdocs:
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: |
VERSION_NUM=$(jq '.version' < package.json)
VERSION_NUM=${VERSION_NUM#\"}
VERSION_NUM=${VERSION_NUM%\"}
echo "VERSION_NUM: $VERSION_NUM"
cat mkdocs.yml
GREP_VERSION_NUM=$(cat mkdocs.yml | grep $VERSION_NUM)
echo GREP_VERSION_NUM: $GREP_VERSION_NUM
test -z "$GREP_VERSION_NUM" && exit 1 || exit 0
\ No newline at end of file
name: Release
on:
push:
branches:
- master
jobs:
check-version:
outputs:
package-version: ${{ steps.set-version.outputs.package-version-from-json }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set version
id: set-version
run: |
PACKAGEJSON_VER=v$(cat package.json | jq -r '.version')
echo "::set-output name=package-version-from-json::$PACKAGEJSON_VER"
create-release:
needs: check-version
if: success()
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.check-version.outputs.package-version }}
release_name: Release ${{ needs.check-version.outputs.package-version }}
draft: false
prerelease: false
# v2.3.7
## Under the hood stuff
- Enable CI for release workflow.
......@@ -40,6 +40,7 @@ pages:
- Fetching datasets: 'advanced/datasets.md'
- Display non-atlas volumes: 'advanced/otherVolumes.md'
- Release notes:
- v2.3.7: 'releases/v2.3.7.md'
- v2.3.6: 'releases/v2.3.6.md'
- v2.3.5: 'releases/v2.3.5.md'
- v2.3.4: 'releases/v2.3.4.md'
......
{
"name": "interactive-viewer",
"version": "2.3.3",
"version": "2.3.7",
"description": "HBP interactive atlas viewer. Integrating KG query, dataset previews & more. Based on humanbrainproject/nehuba & google/neuroglancer. Built with angular.io",
"scripts": {
"dev-server-export": "webpack-dev-server --config webpack.export.js",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment