chore: bump version to 1.7.5 #62
Workflow file for this run
This file contains hidden or 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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
tags: | |
- v* | |
- auto_build* | |
paths-ignore: | |
- '**.md' | |
- 'docs/**' | |
- '.github/ISSUE_TEMPLATE/**' | |
pull_request: | |
tags: | |
- v* | |
- auto_build* | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'version (ps:v1.0.0)' | |
required: true | |
default: 'custom-build' | |
branch: | |
description: 'Git branch to build from' | |
required: true | |
default: 'develop' | |
jobs: | |
release-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.inputs.branch || github.ref }} | |
fetch-depth: 1 | |
- name: Setup environment | |
uses: ./.github/actions/setup | |
- name: Remove wallet-sdk patches | |
run: rm -rf node_modules/@unisat/wallet-sdk/patches 2>/dev/null || true | |
- name: Fix modules | |
run: yarn fix:modules | |
- name: Build Chrome (Release Build) | |
run: yarn build:chrome:mv3 | |
- name: Get Version Name | |
id: get-version | |
run: | | |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then | |
TAG_VERSION="${{ github.event.inputs.version }}" | |
else | |
TAG_VERSION="${GITHUB_REF##*/}" | |
fi | |
echo "version=$TAG_VERSION" >> $GITHUB_OUTPUT | |
echo "Using version: $TAG_VERSION" | |
- name: Prepare Release Files | |
run: | | |
mkdir -p dist/release | |
find dist -name "*.zip" -exec cp {} dist/release/unisat-chrome-mv3-${{ steps.get-version.outputs.version }}.zip \; | |
ls -la dist/release/ | |
- name: Create Release and Upload Assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.get-version.outputs.version }} | |
name: ${{ steps.get-version.outputs.version }} | |
files: dist/release/*.zip | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |