Skip to content

Commit

Permalink
Name the release artifact using version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Sep 10, 2020
1 parent f6cac2c commit df9b010
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/jbrowse-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Set env
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/@gmod/jbrowse-web@} }
- name: Install deps
run: yarn
- name: Build project
run: |
echo $RELEASE_VERSION
cd products/jbrowse-web/
NODE_OPTIONS='--max-old-space-size=6500' yarn build
cd build
zip -r jbrowse-web.zip .
zip -r "jbrowse-web-${RELEASE_VERSION}.zip" .
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -38,6 +41,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./products/jbrowse-web/build/jbrowse-web.zip
asset_name: jbrowse-web.zip
asset_path: ./products/jbrowse-web/build/jbrowse-web-${{env.RELEASE_VERSION}}.zip
asset_name: jbrowse-web-${{env.RELEASE_VERSION}}.zip
asset_content_type: application/zip

0 comments on commit df9b010

Please sign in to comment.