chore: upload artifacts separate because globs (#13308) #266
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
# A workflow to create github releases with changelogs from tags | |
name: 'Create github release for tag' | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
create-release: | |
runs-on: 'ubuntu-22.04' | |
name: 'Create changelogs and release' | |
steps: | |
# this could be improved by replacing this checkout with something like | |
# mkdir opentrons ; git init . ; | |
# git remote add origin https://github.com/opentrons/opentrons | |
# git fetch origin ${{ github.ref_name }}:${{ github.ref_name }} | |
# git checkout ${{ github.ref_name }} | |
# This would pull history for only the tag in question. | |
- uses: 'actions/checkout@v3' | |
with: | |
fetch-depth: 0 | |
- uses: 'actions/setup-node@v3' | |
with: | |
node-version: '16' | |
- name: 'cache yarn cache' | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ github.workspace }}/.npm-cache/_prebuild | |
${{ github.workspace }}/.yarn-cache | |
key: js-${{ hashFiles('yarn.lock') }} | |
- name: 'setup-js' | |
run: | | |
npm config set cache ${{ github.workspace }}/.npm-cache | |
yarn config set cache-folder ${{ github.workspace }}/.yarn-cache | |
yarn install | |
- name: 'create release' | |
run: | | |
node ./scripts/deploy/create-release.js ${{ github.token }} ${{ github.ref_name }} --deploy |