forked from swoole/swoole-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
249 changed files
with
2,943 additions
and
4,727 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: artifact-hash | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
description: "发版 版本号 tag" | ||
default: 'v1.7.1' | ||
type: string | ||
php-version: | ||
required: true | ||
description: "PHP 版本号 " | ||
default: 'v8.1.31,v8.2.27,v8.3.15,v8.4.2' | ||
type: string | ||
enable_upload_cloud_object_storage: | ||
required: false | ||
type: boolean | ||
description: "上传到云对象存储 (默认不需要上传)" | ||
|
||
jobs: | ||
generate-artifact-hash: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Show Release File Hash | ||
run: | | ||
bash sapi/scripts/generate-artifact-hash.sh --version ${{ inputs.version }} --php-version ${{ inputs.php-version }} | ||
- name: production artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.version }}-sha256sum | ||
retention-days: 90 | ||
path: | | ||
${{ inputs.version }}-sha256sum | ||
- name: upload artifacts to cloud object storage | ||
if: ${{ 0 && (github.repository == 'swoole/swoole-cli') && (inputs.enable_upload_cloud_object_storage == true) }} | ||
env: | ||
OSS_SECRET_ID: ${{ secrets.QCLOUD_OSS_SECRET_ID }} | ||
OSS_SECRET_KEY: ${{ secrets.QCLOUD_OSS_SECRET_KEY }} | ||
OSS_BUCKET: ${{ vars.QCLOUD_OSS_BUCKET }} | ||
OSS_REGION: ${{ vars.QCLOUD_OSS_REGION }} | ||
run: | | ||
bash sapi/scripts/tencent-cloud-object-storage.sh --upload-all --swoole-cli-version ${{ inputs.version }} | ||
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.