Skip to content

0.33.0

0.33.0 #420

Workflow file for this run

name: Release extension zip
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
concurrency:
group: 'releases'
cancel-in-progress: true
jobs:
release:
environment:
name: github-releases
runs-on: ubuntu-latest
strategy:
matrix:
config: [beta, mainstream]
steps:
- uses: olegtarasov/[email protected]
id: tag-name
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ steps.tag-name.outputs.tag }}
- name: Setup Node.js Latest
uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version-file: '.nvmrc'
- name: Install dependencies
run: yarn install
- name: Build app
run: NODE_ENV=production yarn run build:${{ matrix.config }}
- name: Zip Chrome
run: cd build/chrome && zip -qq -r ../vega-browserwallet-${{ matrix.config }}-chrome-${{ steps.tag-name.outputs.tag || 'latest' }}.zip .
- name: Zip Firefox
run: cd build/firefox && zip -qq -r ../vega-browserwallet-${{ matrix.config }}-firefox-${{ steps.tag-name.outputs.tag || 'latest' }}.zip .
- name: Upload to Github Releases
uses: softprops/action-gh-release@cd28b0f5ee8571b76cfdaa62a30d51d752317477
with:
files: 'build/*.zip'
name: ${{ steps.tag-name.outputs.tag || 'Latest' }}
tag_name: ${{ steps.tag-name.outputs.tag || 'latest' }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}