Skip to content

Commit 4218f29

Browse files
committed
Add nightly release build
1 parent 4f06548 commit 4218f29

6 files changed

Lines changed: 33 additions & 20 deletions

File tree

.github/workflows/release-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,18 @@ jobs:
120120
with:
121121
files: dist/${{ matrix.operating-system.filename }}
122122

123+
- name: "Deploy to self-hosted OSS (nightly)"
124+
# only run this step if the repository is static-php-cli and is push to v3 branch
125+
if: ${{ github.repository == 'crazywhalecc/static-php-cli' && github.ref == 'refs/heads/v3' }}
126+
uses: static-php/upload-s3-action@v1.0.0
127+
with:
128+
aws_key_id: ${{ secrets.AWS_KEY_ID }}
129+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
130+
aws_bucket: ${{ secrets.AWS_BUCKET }}
131+
source_dir: "dist/"
132+
destination_dir: v3/spc-bin/nightly/
133+
endpoint: ${{ secrets.AWS_ENDPOINT }}
134+
123135
- name: "Deploy to self-hosted OSS (latest)"
124136
# only run this step if the repository is static-php-cli and is release tag
125137
if: ${{ github.repository == 'crazywhalecc/static-php-cli' && startsWith(github.ref, 'refs/tags/') }}

README-zh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141

4242
```bash
4343
# For Linux x86_64
44-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-x86_64
44+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64
4545
# For Linux aarch64
46-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-aarch64
46+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64
4747
# macOS x86_64 (Intel)
48-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-x86_64
48+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64
4949
# macOS aarch64 (Apple)
50-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-aarch64
50+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64
5151
# Windows (x86_64, win10 build 17063 or later, please install VS2022 first)
52-
curl.exe -fsSL -o spc.exe https://dl.static-php.dev/v3/spc-bin/latest/spc-windows-x64.exe
52+
curl.exe -fsSL -o spc.exe https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x64.exe
5353
```
5454

5555
对于 macOS 和 Linux,请先添加可执行权限:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141

4242
```bash
4343
# For Linux x86_64
44-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-x86_64
44+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64
4545
# For Linux aarch64
46-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-aarch64
46+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64
4747
# macOS x86_64 (Intel)
48-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-x86_64
48+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64
4949
# macOS aarch64 (Apple)
50-
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-aarch64
50+
curl -fsSL -o spc https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64
5151
# Windows (x86_64, win10 build 17063 or later, please install VS2022 first)
52-
curl.exe -fsSL -o spc.exe https://dl.static-php.dev/v3/spc-bin/latest/spc-windows-x64.exe
52+
curl.exe -fsSL -o spc.exe https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x64.exe
5353
```
5454

5555
For macOS and Linux, add execute permission first:

docs/en/guide/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ Pick the installation method that fits your use case:
2929
3030
```shell
3131
# Linux x86_64
32-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-x86_64 -o spc
32+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc
3333
# Linux arm64
34-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-aarch64 -o spc
34+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64 -o spc
3535
# macOS x86_64 (Intel)
36-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-x86_64 -o spc
36+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64 -o spc
3737
# macOS arm64 (Apple Silicon)
38-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-aarch64 -o spc
38+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64 -o spc
3939
# Windows x86_64 (PowerShell)
40-
curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-windows-x86_64.exe -o spc.exe
40+
curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe
4141
```
4242

4343
On Linux and macOS, mark the binary as executable before running it:

docs/public/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
static-php.dev

docs/zh/guide/installation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ spc 无须任何依赖,下载即可运行,支持 Linux、macOS 和 Windows
2929
3030
```shell
3131
# Linux x86_64
32-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-x86_64 -o spc
32+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-x86_64 -o spc
3333
# Linux arm64
34-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-linux-aarch64 -o spc
34+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-linux-aarch64 -o spc
3535
# macOS x86_64 (Intel)
36-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-x86_64 -o spc
36+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-x86_64 -o spc
3737
# macOS arm64 (Apple Silicon)
38-
curl -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-macos-aarch64 -o spc
38+
curl -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-macos-aarch64 -o spc
3939
# Windows x86_64 (PowerShell)
40-
curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/latest/spc-windows-x86_64.exe -o spc.exe
40+
curl.exe -#fSL https://dl.static-php.dev/v3/spc-bin/nightly/spc-windows-x86_64.exe -o spc.exe
4141
```
4242

4343
*nix 系统下载完成后需要赋予可执行权限:

0 commit comments

Comments
 (0)