Skip to content

aaaaa

aaaaa #6

Workflow file for this run

name: make and release
permissions:
contents: write
discussions: write
# on: workflow_dispatch
on:
push:
tags:
- "v*.*.*"
jobs:
# buildDeb:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Use Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18.15.0
# - name: testing...
# run: node -v
# - name: Install dependencies
# run: yarn ci --network-timeout 1000000
# - name: forge make
# run: yarn make:deb
# - uses: actions/upload-artifact@v3
# with:
# name: linux-build-file
# path: ./out/full/Yomikiru-${{ github.ref_name }}-amd64.deb
build:
# needs: buildDeb
runs-on: windows-latest
outputs:
files: ${{ steps.readFilesToUpload.outputs.files }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.15.0
- name: Install dependencies
run: yarn ci --network-timeout 1000000
- name: forge make
run: yarn make:zip
# get .deb file
# - uses: actions/download-artifact@v3
# id: linux-build-file-downloader
# with:
# name: linux-build-file
# path: ./out/full/
- name: Read files to upload
id: readFilesToUpload
run: echo "files=$(cat filesToUpload.txt)" >> "$GITHUB_OUTPUT"; echo "files=$(cat filesToUpload.txt)"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
FILES: ${{ steps.readFilesToUpload.outputs.files }}
with:
tag_name: ${{github.ref}}
name: ${{github.ref_name}}
# add generated file here to upload
files: "$FILES"
# files: |
# ./out/make/zip/win32/ia32/ytdl-gui-win32-ia32-${{ github.ref_name }}.zip
body_path: changelog-temp.md
generate_release_notes: true
# discussion_category_name: General