Skip to content

Merge pull request #211 from ChubachiPT2024/feature/add-readme #108

Merge pull request #211 from ChubachiPT2024/feature/add-readme

Merge pull request #211 from ChubachiPT2024/feature/add-readme #108

Workflow file for this run

name: Build and Release Electron App
on:
push:
branches:
- main
- release
workflow_call:
permissions:
contents: write
jobs:
mac-linux-build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: macos
platform: darwin
- os: ubuntu
platform: linux
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
# ここにテストが入る
- name: Package Electron app
run: npm run make -- --platform ${{ matrix.platform }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform }}-build
path: out/make/**/*
windows-build:
runs-on: windows-2019
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
# ここにテストが入る
- name: Package Electron app
run: npm run make -- --platform win32
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: windows-build
path: out/make/**/*
upload-to-google-drive:
needs:
- mac-linux-build
- windows-build
if: |
(github.event_name == 'push' && github.ref == 'refs/heads/release') ||
github.event_name == 'workflow_call'
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: build
- name: Upload to Google Drive
uses: satackey/action-google-drive@v1
with:
skicka-tokencache-json: ${{ secrets.SKICKA_TOKENCACHE_JSON }}
upload-from: build
upload-to: /manakan
google-client-id: ${{ secrets.GOOGLE_CLIENT_ID }}
google-client-secret: ${{ secrets.GOOGLE_CLIENT_SECRET }}