From dcf185381a901d4983ecde2bd50e0483ba090d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Thu, 31 Oct 2024 14:56:18 +0100 Subject: [PATCH] Prepare deployments for WordPress.org --- .forgejo/workflows/assets.yml | 20 ++++++++++++++++++++ .forgejo/workflows/deploy.yml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .forgejo/workflows/assets.yml create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/assets.yml b/.forgejo/workflows/assets.yml new file mode 100644 index 0000000..f2281e0 --- /dev/null +++ b/.forgejo/workflows/assets.yml @@ -0,0 +1,20 @@ +name: Plugin asset/readme update on WordPress.org +on: + push: + branches: + - main + +jobs: + trunk: + name: Push assets to trunk on WordPress.org + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: https://code.forgejo.org/actions/checkout@v4 + + - name: WordPress.org plugin asset/readme update + uses: https://github.com/10up/action-wordpress-plugin-asset-update@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: activitypub-event-bridge diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..2695ab5 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "*" + +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: https://code.forgejo.org/actions/checkout@v4 + + - name: WordPress Plugin Deploy + uses: https://github.com/10up/action-wordpress-plugin-deploy@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SLUG: activitypub-event-bridge