diff --git a/.github/workflows/asset-update.yaml b/.github/workflows/asset-update.yaml new file mode 100644 index 0000000..e85614e --- /dev/null +++ b/.github/workflows/asset-update.yaml @@ -0,0 +1,10 @@ +name: Plugin asset/readme update +on: + workflow_dispatch: + push: + branches: + - master +jobs: + update: + uses: sy-records/.github/.github/workflows/wordpress-plugin-asset-update.yaml@main + secrets: inherit diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 901e2f5..822857d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,41 +4,8 @@ on: release: types: [ published ] jobs: - tag: - name: New release - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '7.0' - tools: composer - - name: Build - run: | - composer install -o --no-dev - working-directory: sdk - - name: Set Version - if: github.event_name == 'pull_request' - run: | - echo "VERSION=ci" >> $GITHUB_ENV - - name: WordPress Plugin Deploy - id: deploy - uses: 10up/action-wordpress-plugin-deploy@stable - with: - dry-run: ${{ github.event_name == 'pull_request' }} - generate-zip: ${{ github.event_name == 'release' }} - env: - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - SLUG: oss-aliyun - - name: Upload release asset - uses: actions/upload-release-asset@v1 - if: github.event_name == 'release' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{ steps.deploy.outputs.zip-path }} - asset_name: ${{ github.event.repository.name }}.zip - asset_content_type: application/zip + deploy: + uses: sy-records/.github/.github/workflows/wordpress-plugin-deploy.yaml@main + with: + build: true + secrets: inherit diff --git a/aliyun-oss-wordpress.php b/aliyun-oss-wordpress.php index 1225624..96cd004 100644 --- a/aliyun-oss-wordpress.php +++ b/aliyun-oss-wordpress.php @@ -584,7 +584,7 @@ function oss_setting_page() ?>
如果觉得此插件对你有所帮助,不妨到 GitHub 上点个Star
,Watch
关注更新;欢迎加入云存储插件交流群,QQ群号:887595381;
如果觉得此插件对你有所帮助,不妨到 GitHub 上点个Star
,Watch
关注更新;欢迎加入云存储插件交流群,QQ群号:887595381;