Skip to content

add copy and paste and video preview #38

add copy and paste and video preview

add copy and paste and video preview #38

Workflow file for this run

name: Build and Release
on:
push:
branches:
- build
jobs:
build-and-release:
runs-on: macos-latest
environment:
name: production
steps:
- uses: actions/checkout@v2
- name: Extract version from package.json
id: package_version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "Version: $VERSION"
echo "::set-output name=VERSION::$VERSION"
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build for MacOS
run: npm run build:macos
- name: Build for Windows
run: npm run build:win
- name: Build for Linux
run: npm run build:linux
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
./dist/mockingbird-proxy-portable-*.exe
./dist/mockingbird-proxy-*.dmg
./dist/mockingbird-proxy-*.AppImage
token: ${{ secrets.GH_TOKEN }}
tag_name: v${{ steps.package_version.outputs.VERSION }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}