mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Update build-php.yml
This commit is contained in:
parent
10541ddcc7
commit
6c62d032fe
12
.github/workflows/build-php.yml
vendored
12
.github/workflows/build-php.yml
vendored
@ -33,6 +33,12 @@ jobs:
|
||||
cd docker/ && docker build . --tag static-php --build-arg USE_BACKUP_ADDRESS=yes && \
|
||||
mkdir ../dist && \
|
||||
docker run --rm -v $(pwd)/../dist:/dist/ static-php build-php original ${{ matrix.php-versions }} all /dist/
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: static-php-cli_${{ matrix.php-versions }}_${{ matrix.arch }}
|
||||
path: |
|
||||
dist
|
||||
- name: Pack PHP ${{ matrix.php-versions }} to archive
|
||||
run: |
|
||||
cd dist
|
||||
@ -40,12 +46,6 @@ jobs:
|
||||
if [ -f "./micro.sfx" ]; then
|
||||
tar -zcvf "micro-${{ matrix.php-versions }}-${{ matrix.arch }}.tar.gz" ./micro.sfx && rm ./micro.sfx
|
||||
fi
|
||||
- name: Upload Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: static-php-cli_${{ matrix.php-versions }}_${{ matrix.arch }}
|
||||
path: |
|
||||
dist
|
||||
- name: Deploy to Zhamao Server
|
||||
uses: easingthemes/ssh-deploy@main
|
||||
env:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user