From 6c232c6ac60eb6613e65ba675c9c23cb6a55f2ab Mon Sep 17 00:00:00 2001 From: PriyoMukul <priyomukul@gmail.com> Date: Sun, 26 Sep 2021 16:53:31 +0600 Subject: [PATCH] actions updated. --- .github/workflows/assets.yml | 20 ++++++++++++++++++++ .github/workflows/release.yml | 6 ------ 2 files changed, 20 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/assets.yml diff --git a/.github/workflows/assets.yml b/.github/workflows/assets.yml new file mode 100644 index 000000000..3bd2e3028 --- /dev/null +++ b/.github/workflows/assets.yml @@ -0,0 +1,20 @@ +# Deploy to WP.org +name: Deploy to WordPress.org + +on: + push: + branches: [ trunk ] +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Running NPM Install & Build For Gutenberg + run: | + npm install --silent && npm run build + - name: Assets Update + id: assets + uses: 10up/action-wordpress-plugin-asset-update@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f08a312a..524756af9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,6 @@ jobs: - name: WordPress Plugin Deploy id: deploy uses: 10up/action-wordpress-plugin-deploy@stable - env: - SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - - name: Assets Update - id: assets - uses: 10up/action-wordpress-plugin-asset-update@stable env: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} \ No newline at end of file