diff --git a/.github/main.workflow b/.github/main.workflow deleted file mode 100644 index 8577b5a..0000000 --- a/.github/main.workflow +++ /dev/null @@ -1,32 +0,0 @@ -workflow "Deploy" { - resolves = ["WordPress Plugin Deploy"] - on = "push" -} - -# Filter for tag -action "tag" { - uses = "actions/bin/filter@master" - args = "tag" -} - -action "WordPress Plugin Deploy" { - needs = ["tag"] - uses = "10up/action-wordpress-plugin-deploy@master" - secrets = ["SVN_PASSWORD", "SVN_USERNAME"] -} - -workflow "Asset/readme update" { - resolves = ["Plugin Asset Update"] - on = "push" -} - -action "Filters for GitHub Actions" { - uses = "actions/bin/filter@master" - args = "branch master" -} - -action "Plugin Asset Update" { - uses = "10up/action-wordpress-plugin-asset-update@master" - needs = ["Filters for GitHub Actions"] - secrets = ["SVN_USERNAME", "SVN_PASSWORD"] -} diff --git a/.github/workflows/push-asset-readme-update.yml b/.github/workflows/push-asset-readme-update.yml new file mode 100644 index 0000000..e615b2d --- /dev/null +++ b/.github/workflows/push-asset-readme-update.yml @@ -0,0 +1,17 @@ +on: push +name: Asset/readme update +jobs: + filtersForGitHubActions: + name: Filters for GitHub Actions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Filters for GitHub Actions + uses: actions/bin/filter@master + with: + args: branch master + - name: Plugin Asset Update + uses: 10up/action-wordpress-plugin-asset-update@master + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} diff --git a/.github/workflows/push-deploy.yml b/.github/workflows/push-deploy.yml new file mode 100644 index 0000000..5b472f4 --- /dev/null +++ b/.github/workflows/push-deploy.yml @@ -0,0 +1,16 @@ +on: push +name: Deploy +jobs: + tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: tag + uses: actions/bin/filter@master + with: + args: tag + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@master + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }}