[update docs] v2.10.3 #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Upload jbrowse-web release artifact to jbrowse-web tag | |
on: | |
push: | |
tags: | |
- 'v*' | |
name: Upload jbrowse-web artifacts | |
jobs: | |
build: | |
name: upload_web | |
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: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
# This allows us to manually edit the release body text before publishing | |
draft: true | |
prerelease: false | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- 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-${RELEASE_VERSION}.zip" . | |
- name: Upload jbrowse-web build | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
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-${{env.RELEASE_VERSION}}.zip | |
asset_name: jbrowse-web-${{env.RELEASE_VERSION}}.zip | |
asset_content_type: application/zip |