From 608f3f930a9d824f852d8db1dc80351b585afec5 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Fri, 31 May 2024 09:27:58 +0200 Subject: [PATCH] Cleanup --- .github/workflows/prerelease-changelog.yml | 1 - .github/workflows/release-drafter.yml | 3 - .../wordpress-org-deploy.yml.DISABLED | 71 ------------------- 3 files changed, 75 deletions(-) delete mode 100644 .github/workflows/wordpress-org-deploy.yml.DISABLED diff --git a/.github/workflows/prerelease-changelog.yml b/.github/workflows/prerelease-changelog.yml index b80dfcc..dc38386 100644 --- a/.github/workflows/prerelease-changelog.yml +++ b/.github/workflows/prerelease-changelog.yml @@ -8,5 +8,4 @@ on: jobs: call-workflow-update-changelog: uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@main - # uses: figuren-theater/.github/.github/workflows/prerelease-changelog-update.yml@fix/update-wporg-related-versions secrets: inherit diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 3e5c659..eedf77d 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -9,9 +9,6 @@ on: pull_request: # Only following types are handled by the action, but one can default to all as well types: [opened, reopened, synchronize] - # pull_request_target event is required for autolabeler to support PRs from forks - # pull_request_target: - # types: [opened, reopened, synchronize] jobs: call-workflow-release-drafter: diff --git a/.github/workflows/wordpress-org-deploy.yml.DISABLED b/.github/workflows/wordpress-org-deploy.yml.DISABLED deleted file mode 100644 index 7fc40ea..0000000 --- a/.github/workflows/wordpress-org-deploy.yml.DISABLED +++ /dev/null @@ -1,71 +0,0 @@ -name: Deploy to WordPress.org Repository - -on: - release: - types: [published] - # push: - # # commit_message: 'Update version-numbers to ' - # branches: - # - main - -jobs: - deploy-to-wp-repository: - name: Deploy to WP.org - runs-on: ubuntu-latest - # if: github.event.release.edited == true && contains(github.event.head_commit.message, 'Update wporg-related-version to ') - # if: contains(github.event.head_commit.message, 'Update wporg-related-version to ') - - # if: contains(github.event.head_commit.message, 'Update version-numbers to ') && contains(github.event.head_commit.modified, 'readme.md') - if: contains(github.event.head_commit.message, 'Update version-numbers to ') - steps: - - # - name: Checkout code - # uses: actions/checkout@v4 - # - name: Build - # run: | - # npm install - # npm run build - # # - name: WordPress.org Plugin Deploy - # # id: deploy - # # uses: 10up/action-wordpress-plugin-deploy@stable - # # with: - # # generate-zip: true - # # env: - # # SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - # # SVN_USERNAME: ${{ secrets.SVN_USERNAME }} - - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: latest - coverage: none - tools: wp-cli - - - name: Install latest version of dist-archive-command - run: wp package install wp-cli/dist-archive-command:dev-main - - - name: Setup Node - uses: actions/setup-node@v4 - with: - # Make sure to use the same version like WordPress/gutenberg. - # node-version-file: '.nvmrc' - node-version: v20.11.1 - cache: npm - - - name: Install dependencies - run: npm ci - - - name: Build plugin - run: | - npm run build - wp dist-archive . ./${{ github.event.repository.name }}.zip - - - name: Upload release asset - uses: softprops/action-gh-release@v1 - with: - files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}