name: Build/release on: push: branches: - master jobs: Windows: name: Windows runs-on: windows-latest steps: - name: Check out git repository uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v2 with: node-version: '12.x' - name: Cache file - uses: actions/cache@v2 with: path: | node_modules %APPDATA%\npm-cache %LOCALAPPDATA%\electron\Cache %LOCALAPPDATA%\electron-builder\Cache key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - run: npm install && npm run publish:gh env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Mac: name: Mac runs-on: macos-latest steps: - name: Check out git repository uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v2 with: node-version: '12.x' - name: Cache file - uses: actions/cache@v2 with: path: | node_modules $HOME/.cache/electron $HOME/.cache/electron-builder $HOME/.npm/_prebuilds key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - run: npm install && npm run publish:gh:mac env: ELECTRON_CACHE: $HOME/.cache/electron ELECTRON_BUILDERCACHE: $HOME/.cache/electron-builder GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Linux: name: Linux runs-on: ubuntu-latest steps: - name: Install package - run: sudo apt-get install -y rpm bsdtar - name: Check out git repository uses: actions/checkout@v2 - name: Install Node.js uses: actions/setup-node@v2 with: node-version: '12.x' - name: Cache file - uses: actions/cache@v2 with: path: | node_modules $HOME/.cache/electron $HOME/.cache/electron-builder $HOME/.npm/_prebuilds key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build- - run: npm install && npm run publish:gh:linux env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}