Skip to content

Commit

Permalink
📌 v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Azanniel committed Jun 20, 2023
1 parent 84e314a commit 4b46b08
Showing 1 changed file with 14 additions and 30 deletions.
44 changes: 14 additions & 30 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ on:
push:
tags: ["*"]

permissions:
contents: write

jobs:
release:
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -15,7 +12,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- name: Checkout Git repository
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
Expand All @@ -26,33 +23,20 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: build-linux
if: matrix.os == 'ubuntu-latest'
run: npm run build:linux
- name: apt-update
if: startsWith(matrix.os, 'ubuntu-latest')
run: sudo apt-get update

- name: build-mac
if: matrix.os == 'macos-latest'
run: npm run build:mac
- name: autoremove
if: startsWith(matrix.os, 'ubuntu-latest')
run: sudo apt autoremove

- name: build-win
if: matrix.os == 'windows-latest'
run: npm run build:win
- name: Install libarchive rpm on Linux
if: startsWith(matrix.os, 'ubuntu-latest')
run: sudo apt-get install libarchive-tools rpm

- name: release
uses: softprops/action-gh-release@v1
- name: Release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
draft: true
files: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
token: ${{ github.token }}
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
release: true

0 comments on commit 4b46b08

Please sign in to comment.