update #12
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: Build and publish | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
name: Build | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Get NWJS version | |
run: | | |
echo "Get NWJS version" | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
npm i | |
npm i --save-dev archiver | |
node packager.js | |
node archiver.js | |
- name: Upload binaries to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: rutube-downloader.zip | |
tag: ${{ github.ref_name }} | |
overwrite: true | |
file_glob: true |