Skip to content

no message

no message #15

Workflow file for this run

name: Publish
on:
push:
tags:
- "v*"
env:
PRODUCT_NAME: "JDTreasureGrabber"
permissions:
contents: write
jobs:
release:
name: Publish release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Check out git repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: "package.json"
- name: Install Dependencies
run: yarn
- name: Build Electron App
run: yarn dist
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}
path: |
dist/${{ env.PRODUCT_NAME }}*.*
dist/latest*.yml
if-no-files-found: error
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/${{ env.PRODUCT_NAME }}*.*
dist/latest*.yml
fail_on_unmatched_files: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}