-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1016 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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}}