Skip to content

docs: update README.md #26

docs: update README.md

docs: update README.md #26

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node
- uses: actions/checkout@v3
- name: Use Node.js 21.x
uses: actions/setup-node@v3
with:
node-version: 21.x
cache: 'npm'
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: npm install
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: npm run build --if-present
- name: Upload Release Artifact
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./dist/nightwave-plaza-electron_${{ steps.release.outputs.tag_name }}_linux.AppImage
windows:
name: windows
needs: release-please
runs-on: windows-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 21.x
uses: actions/setup-node@v3
with:
node-version: 21.x
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build --if-present
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PLEASE }}
run: gh release upload ${{ needs.release-please.outputs.tag_name }} ./dist/nightwave-plaza-electron_${{ needs.release-please.outputs.tag_name }}_windows.exe