Skip to content

chore: upgrade action #42

chore: upgrade action

chore: upgrade action #42

Workflow file for this run

name: "Release Binary"
on:
push:
branches:
- feature/nexe
jobs:
tagged-release:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build
- run: echo "OS=${RUNNER_OS,,}" >>${GITHUB_ENV}
- run: tar -czvf openbmclapi-${OS}.tar.gz dist nginx package.json node_modules
- run: |
npm run build:sea
tar -czvf openbmclapi-${OS}-sea.tar.gz openbmclapi
- uses: "actions/cache@v4"
with:
path: |
~/.cache
~/.npm
~/.nexe
key: nexec-${OS}-cache
# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: false
# files: |
# openbmclapi-${OS}.tar.gz
# openbmclapi-${OS}-sea.tar.gz