mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-10 18:02:55 +00:00
32 lines
609 B
YAML
32 lines
609 B
YAML
name: Publish Win
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
Build:
|
|
name: Build Windows
|
|
runs-on: windows-latest
|
|
environment: build
|
|
|
|
if: startsWith(github.event.ref, 'refs/tags/v')
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js 20.x
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 20.x
|
|
|
|
- name: Build
|
|
env:
|
|
DP_KEY: ${{ secrets.DP_KEY }}
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
GH_REPOSITORY: ${{ github.repository }}
|
|
shell: bash
|
|
run: |
|
|
./cmd electron win
|