Skip to content

Merge pull request #12 from mohwildan/realese/build #13

Merge pull request #12 from mohwildan/realese/build

Merge pull request #12 from mohwildan/realese/build #13

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 dependencies
run: |
npm install
- name: Build the app
run: |
npm run package
ls -la ./release/build || true
# - name: Create a unique tag
# id: create_tag
# run: echo "TAG_NAME=v1.0.0-${GITHUB_SHA::7}" >> $GITHUB_ENV
- 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/Vocallia-4.6.0.dmg
draft: false
prerelease: false