chore: upgrade action #42
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: "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 | |