Skip to content

Commit 27b2307

Browse files
update
1 parent bc612a9 commit 27b2307

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and publish
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: windows-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
repository-projects: write
14+
strategy:
15+
matrix:
16+
node-version: [20.x]
17+
steps:
18+
- name: Get NWJS version
19+
run: |
20+
echo "Get NWJS version"
21+
- uses: actions/checkout@v4
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- name: Build
27+
run: |
28+
npm i
29+
npm i --save-dev archiver
30+
node archiver.js
31+
- name: Upload binaries to release
32+
uses: svenstaro/upload-release-action@v2
33+
with:
34+
repo_token: ${{ secrets.GITHUB_TOKEN }}
35+
file: rutube-downloader.zip
36+
tag: ${{ github.ref_name }}
37+
overwrite: true
38+
file_glob: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*
22
!/.github
3+
!/.github/**
34
!/bin
45
!/bin/**
56
!/src

0 commit comments

Comments
 (0)