Merge pull request #12 from mohwildan/realese/build #13
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: 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 |