Merge pull request #349 from Maxnflaxl/mainnet #466
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
name: Build | |
on: | |
push: | |
branches: | |
- mainnet | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- run: yarn --frozen-lockfile | |
- name: Build wallet | |
run: | | |
./update_version.sh | |
echo "BEAM_VERSION=$(cat version.gen)" >> $GITHUB_ENV | |
echo "BEAM_TARGET_SUFFIX=$(cat suffix.gen)" >> $GITHUB_ENV | |
rm version.gen | |
rm suffix.gen | |
yarn build | |
- name: Upload build | |
if: success() | |
uses: actions/upload-artifact@v1 | |
with: | |
name: beam-web-wallet${{env.BEAM_TARGET_SUFFIX}}-${{env.BEAM_VERSION}} | |
path: dist |