Update build.yml #38
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
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- run: | | |
version=22.3.0 | |
curl https://nodejs.org/dist/v$version/node-v$version.tar.gz | tar -xz | |
cd node-v$version | |
./configure --fully-static --prefix ${{github.workspace}}/nodejs | |
make -j2 | |
make install | |
cd ${{github.workspace}} | |
tar -cjvf nodejs.tar.bz2 nodejs | |
- uses: softprops/action-gh-release@master | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
tag_name: 1 | |
files: nodejs.tar.bz2 | |
clean: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- run: | | |
sudo apt update | |
sudo apt install -y --no-install-recommends python3-aiohttp | |
curl https://bitbucket.org/chaowenguo/common/raw/main/clean.py | python3 - ${{secrets.GITHUB_TOKEN}} |