version up #18
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: 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: test | |
# run: | | |
# cat changelog.md | |
- 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 | |
# - name: Read Changelog | |
# id: read_changelog | |
# run: echo "{name}={cat ./changelog.md}" >> $GITHUB_OUTPUT | |
# - name: testtttt | |
# run: | | |
# cd ./out/full | |
# ls | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux-build-file | |
path: ./out/full/Yomikiru-${{ github.ref_name }}-amd64.deb | |
# - name: testttttt | |
# run: | | |
# cd ./out/full/ | |
# ls | |
# echo ./out/full/Yomikiru-win32-${{ github.ref_name }}-Portable.zip | |
build: | |
needs: buildDeb | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: test | |
# run: | | |
# cat changelog.md | |
- 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 | |
# - name: Read Changelog | |
# id: read_changelog | |
# run: echo "{name}={cat ./changelog.md}" >> $GITHUB_OUTPUT | |
# - name: testttttt | |
# run: | | |
# cd ./out/full/ | |
# ls | |
# echo ./out/full/Yomikiru-win32-${{ github.ref_name }}-Portable.zip | |
- uses: actions/download-artifact@v3 | |
id: linux-build-file-downloader | |
with: | |
name: linux-build-file | |
path: ./out/full/ | |
# - name: 'Echo download path' | |
# run: echo ${{steps.linux-build-file-downloader.outputs.download-path}} | |
# - name: testtttttttttt | |
# run : | | |
# cd ./out/full | |
# ls | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
tag_name: ${{github.ref}} | |
name: ${{github.ref_name}} | |
files: | | |
./out/full/Yomikiru-win32-${{ github.ref_name }}-Portable.zip | |
./out/full/Yomikiru-win32-${{ github.ref_name }}-Portable-x64.zip | |
./out/full/Yomikiru-${{ github.ref_name }}-Setup.exe | |
./out/full/Yomikiru-${{ github.ref_name }}-Setup-x64.exe | |
./out/full/Yomikiru-${{ github.ref_name }}-amd64.deb | |
# ./out/full/Yomikiru-${{ github.ref_name }}-amd64.deb | |
# body: ${{ steps.read_changelog.outputs.changelog }} | |
body_path: changelog-temp.md | |
generate_release_notes: true | |
discussion_category_name: General | |