Skip to content

Commit

Permalink
Merge pull request logseq#1201 from logseq/chore/desktop-release-ci
Browse files Browse the repository at this point in the history
chore(github): add github action
  • Loading branch information
defclass authored Jan 29, 2021
2 parents 9607105 + 1d0f2ae commit 30c5187
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-desktop-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This is a basic workflow to help you get started with Actions

name: Build-Desktop-Release

on:
workflow_dispatch:

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ macos-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 10

- name: Install clojure
run: |
curl -O https://download.clojure.org/install/linux-install-1.10.1.763.sh
chmod +x linux-install-1.10.1.763.sh
sudo ./linux-install-1.10.1.763.sh
- name: Build/release Electron app
run: yarn release-electron

- name: clean build
if: matrix.os == 'macos-latest'
run: |
find ./static -name "*.zip" -type f -exec cp {} ./static \;
npx rimraf "static/!(*.zip)"
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./static/**
asset_name: Logseq.zip

0 comments on commit 30c5187

Please sign in to comment.