Fixed utxo problems #25
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
name: Create Release | |
on: | |
push: | |
tags: | |
- v* | |
pull_request: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- uses: ./.github/actions/setup | |
- name: Get Version Name | |
uses: actions/github-script@v3 | |
id: get-version | |
with: | |
script: | | |
const str=process.env.GITHUB_REF; | |
return str.substring(str.indexOf("v") + 1); | |
result-encoding: string | |
- name: Build Chrome | |
run: | | |
webpack --progress --env browser=chrome manifest=mv3 config=pro channel=github version=${{steps.get-version.outputs.result}} | |
yarn build:chrome:mv3 | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Asset | |
id: upload-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: dist/opwallet-chrome-mv3-v${{steps.get-version.outputs.result}}.zip | |
asset_name: opwallet-chrome-mv3-v${{steps.get-version.outputs.result}}.zip | |
asset_content_type: application/zip |