Skip to content

Merge pull request #10 from mohwildan/realese/build #11

Merge pull request #10 from mohwildan/realese/build

Merge pull request #10 from mohwildan/realese/build #11

Workflow file for this run

name: Publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- name: Checkout git repo
uses: actions/checkout@v3
- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install and build
run: |
npm install
npm install package
- name: Create a unique tag
id: create_tag
run: echo "TAG_NAME=v1.0.0-${GITHUB_SHA::7}" >> $GITHUB_ENV
- name: List build directory
run: |
ls -la ./release/build
- name: Upload release assets
if: success()
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GH_TOKEN }}
tag: ${{ env.TAG_NAME }} # Use the dynamically created tag
name: 'Release ${{ env.TAG_NAME }}'
artifacts: |
./release/build/ElectronReact-4.6.0-arm64.dmg
draft: false
prerelease: false