Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #503 from libotony/master
Browse files Browse the repository at this point in the history
bump thor-devkit version, supporting abiv2
  • Loading branch information
qianbin authored Nov 10, 2021
2 parents ac27a5a + b99aa64 commit 31f84fc
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 130 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Release new version

on:
push:
tags:
- 'v*'

jobs:
create-gh-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
# as electron-builder needs draft to upload artifacts, create once
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true

release-electron:
needs: create-gh-release
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-18.04, windows-latest]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: '10'

- name: Install libs on ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt install -y libusb-1.0-0-dev libudev-dev

- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci

- name: Setup macOS Notarization env
if: contains(matrix.os, 'mac')
run: |
rm -fr ~/private_keys && mkdir ~/private_keys
echo $APPLE_AUTH_PRIVATE_KEY | base64 -D > ~/private_keys/AuthKey_${APPLE_API_KEY}.p8
env:
APPLE_AUTH_PRIVATE_KEY: ${{secrets.APPLE_AUTH_PRIVATE_KEY}}
APPLE_API_KEY: ${{secrets.APPLE_API_KEY}}

- name: Build and Release
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
WIN_CSC_LINK: ${{ secrets.WIN_CSC_LINK }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

32 changes: 0 additions & 32 deletions appveyor.yml

This file was deleted.

Loading

0 comments on commit 31f84fc

Please sign in to comment.