Skip to content

Commit

Permalink
Add dry run to settings, allow manual deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevalk committed Dec 14, 2023
1 parent 720fbcb commit d18a620
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: "Deploy to WordPress.org and create release on GitHub"

on: workflow_dispatch
on:
push:
tags:
Expand All @@ -16,23 +17,9 @@ jobs:
composer install --no-dev --no-interaction --no-progress --optimize-autoloader
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
dry-run: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: fewer-tags # optional, remove if GitHub repo name matches SVN slug, including capitalization
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Create Release
id: create_release
uses: avakar/tag-and-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit d18a620

Please sign in to comment.