Merge pull request #25 from daltonmenezes/fix/default-restrictive-htt… #11
Workflow file for this run
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
on: | |
push: | |
tags: ["*"] | |
jobs: | |
release: | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js, NPM and Yarn | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: apt-update | |
if: startsWith(matrix.os, 'ubuntu-latest') | |
run: sudo apt-get update | |
- name: autoremove | |
if: startsWith(matrix.os, 'ubuntu-latest') | |
run: sudo apt autoremove | |
- name: Install libarchive rpm on Linux | |
if: startsWith(matrix.os, 'ubuntu-latest') | |
run: sudo apt-get install libarchive-tools rpm | |
- name: Release Electron app | |
uses: coparse-inc/[email protected] | |
with: | |
# GitHub token, automatically provided to the action | |
# (No need to define this secret in the repo settings) | |
github_token: ${{ secrets.github_token }} | |
# If the commit is tagged with a version (e.g. "v1.0.0"), | |
# release the app after building | |
release: true |