mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 02:15:36 +08:00
Update build-php.yml
This commit is contained in:
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 && \
|
cd docker/ && docker build . --tag static-php --build-arg USE_BACKUP_ADDRESS=yes && \
|
||||||
mkdir ../dist && \
|
mkdir ../dist && \
|
||||||
docker run --rm -v $(pwd)/../dist:/dist/ static-php build-php original ${{ matrix.php-versions }} all /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
|
- name: Pack PHP ${{ matrix.php-versions }} to archive
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
@@ -40,12 +46,6 @@ jobs:
|
|||||||
if [ -f "./micro.sfx" ]; then
|
if [ -f "./micro.sfx" ]; then
|
||||||
tar -zcvf "micro-${{ matrix.php-versions }}-${{ matrix.arch }}.tar.gz" ./micro.sfx && rm ./micro.sfx
|
tar -zcvf "micro-${{ matrix.php-versions }}-${{ matrix.arch }}.tar.gz" ./micro.sfx && rm ./micro.sfx
|
||||||
fi
|
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
|
- name: Deploy to Zhamao Server
|
||||||
uses: easingthemes/ssh-deploy@main
|
uses: easingthemes/ssh-deploy@main
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user