name: Build on: push: branches: - '**' tags-ignore: - '**' paths-ignore: - 'showcase/**' - README.md jobs: windows: runs-on: windows-2019 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: 14 - uses: actions/cache@v2 id: yarn-cache with: path: node_modules key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} - run: yarn --frozen-lockfile if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn make-index-files - run: yarn electron:publish env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Hash run: type .\dist_electron\latest.yml linux: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: 14 - uses: actions/cache@v2 id: yarn-cache with: path: node_modules key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} - run: | sudo apt-get update sudo apt-get install -y libxtst-dev libpng++-dev - run: yarn --frozen-lockfile if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn make-index-files - run: yarn electron:publish env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Hash run: cat ./dist_electron/latest-linux.yml # darwin: # runs-on: macos-10.15 # steps: # - uses: actions/checkout@v2 # - uses: actions/setup-node@v2 # with: # node-version: 12 # - run: yarn --frozen-lockfile # - run: yarn make-index-files # - run: yarn electron:publish # env: # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}