Skip to content

Commit

Permalink
Merge pull request #33 from The-3Labs-Team/32-tinyplugin-mettere-flus…
Browse files Browse the repository at this point in the history
…h-cache-direttamente-nelle-action

Add github action for purge-cnd cache
  • Loading branch information
Claudio-Emmolo authored Jul 2, 2024
2 parents c19197b + f59fa1a commit ad64ad1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 24 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/purge-cdn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Flush Cache

on:
release:
types: [published]

jobs:
purge-jsdelivr-cache:
runs-on: ubuntu-20.04
steps:
- uses: gacts/purge-jsdelivr-cache@v1
with:
url: |
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/button.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/distico.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/facebook.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/faq.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/index.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/instagram.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/leggianche.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/mediahubPhoto.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/previewAdv.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/product.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/reddit.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/searchPublicApi.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/shortcodeList.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/spoiler.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/survey.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/tiktok.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/tmdb.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/trivia.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/twitter.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/widgetbay.js
https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-laravel-shortcode-plus@1/src/youtube.js
34 changes: 10 additions & 24 deletions src/shortcodeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,36 +88,22 @@ tinymce.PluginManager.add('shortcodeList', function (editor, url) {
description: 'Insert a tiktok frame'
},
{
title: 'Movie - CulturaPop*',
code: '[movie id="1"]',
description: 'Insert a movie'
},
{
title: 'TV - CulturaPop*',
code: '[tv id="1"]',
description: 'Insert a TV show'
},
{
title: 'Video - CulturaPop*',
code: '[video id="1"]',
description: 'Insert a video'
},
{
title: 'Quiz - CulturaPop*',
code: '[quiz id="1"]',
description: 'Insert a quiz'
title: 'Merchandise Product - Spaziogames*',
code: '[product id="1,2,3" amztag="nosp-guide" ebaycampaignid="123456"]',
description: 'Insert a Merchandise Product'
},
{
title: 'Challenge - CulturaPop*',
code: '[challenge id="1"]',
description: 'Insert a challenge'
title: 'Survey',
code: '[survey id="1"]',
description: 'Insert a survey in the article'
},
{
title: 'Merchandise Product - Spaziogames*',
code: '[product id="1,2,3" amztag="nosp-guide" ebaycampaignid="123456"]',
description: 'Insert a Merchandise Product'
title: 'Products',
code: '[products]',
description: 'Move the products block in BestOf article - Tom\'s Hardware* Spaziogames*'
}
]
shortcodes.sort((a, b) => a.title.localeCompare(b.title))

const content = `
<div>
Expand Down

0 comments on commit ad64ad1

Please sign in to comment.