Skip to content

Commit

Permalink
Update deployment action + readme for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Jan 17, 2023
1 parent 390c57c commit c89b5b3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/publish-wordpress.org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,32 @@

name: Deploy to WordPress.org
on:
push:
tags:
- "*"
release:
types: [published]
jobs:
tag:
name: New tag
name: New release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Checkout code
uses: actions/checkout@v2
- name: Convert GH README.md to WP readme.txt
run: python .github/md_to_wp.py README.md
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@1.4.1
id: deploy
uses: 10up/action-wordpress-plugin-deploy@2.1.1
with:
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: cpt-bootstrap-carousel
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
asset_name: cpt-bootstrap-carousel.zip
asset_content_type: application/zip
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Contributors: tallphil
Donate Link: http://www.tallphil.co.uk/bootstrap-carousel/
Tags: carousel, slider, image, bootstrap
Requires at least: 3.0.1
Tested up to: 5.5.3
Tested up to: 6.1.1
Requires PHP: 5.2.4
Stable tag: 1.12
License: GPLv2 or later
Expand Down Expand Up @@ -92,7 +92,8 @@ If you would like to contribute to this plugin, please make a personal fork of t
1. Make sure that your theme is loading the [Twitter Bootstrap](http://www.getbootstrap.com) CSS and Carousel javascript
2. Place the `[image-carousel]` shortcode in a Page or Post
3. Create new items in the `Carousel` post type, uploading a Featured Image for each.
* (Optional) You can hyperlink each image by entering the desired url `Image Link URL` admin metabox when adding a new carousel image.

* (Optional) You can hyperlink each image by entering the desired url `Image Link URL` admin metabox when adding a new carousel image.

## Frequently Asked Questions

Expand Down Expand Up @@ -158,6 +159,11 @@ You need to make sure that each image is the same height. You can do this by set

## Changelog

### 1.13

* Security fix by [@aedelgod](https://github.com/aedelgod) to avoid XSS shortcode injection
* Update GitHub action for deployment to attach zip file to GitHub release

### 1.12

* New Spanish translation by Chema Bescós from _IBIDEM GROUP_ ([https://www.ibidemgroup.com](https://www.ibidemgroup.com))
Expand Down

0 comments on commit c89b5b3

Please sign in to comment.