feat: v0.7.0-beta4 #74
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
name: Package | |
on: | |
push: | |
tags: v* | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
platform: 'mac' | |
runs-on: ${{ matrix.os }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
submodules: true | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install | |
run: | | |
pnpm install --no-frozen-lockfile | |
- name: Set env | |
if: matrix.platform == 'mac' | |
run: | | |
echo "APPLEID=${{ secrets.APPLEID }}" >> $GITHUB_ENV | |
echo "APPLEIDPASS=${{ secrets.APPLEIDPASS }}" >> $GITHUB_ENV | |
echo "CSC_LINK=${{ secrets.CERTIFICATE_OSX_APPLICATION }}" >> $GITHUB_ENV | |
echo "CSC_KEY_PASSWORD=${{ secrets.CERTIFICATE_PASSWORD }}" >> $GITHUB_ENV | |
echo "APPLETEAMID=${{ secrets.APPLETEAMID }}" >> $GITHUB_ENV | |
- name: ls | |
run: | | |
wget https://github.com/1943time/bs-web/releases/download/v0.5.1/web.zip | |
chmod 755 web.zip | |
unzip web.zip | |
- name: Build | |
run: | | |
npm run build | |
- name: Electron-Mac | |
if: matrix.platform == 'mac' | |
run: | | |
npm run build:mac | |
- name: GH Release | |
uses: softprops/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
draft: false | |
prerelease: true | |
files: | | |
dist/Bluestone*.* | |
dist/latest*.yml |