concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
106 stars 66 forks source link

Use GitHub Action to attach ZIP to GitHub Releases #780

Closed mlocati closed 1 year ago

mlocati commented 1 year ago

Instead of copying the same (rather complex) code to my repositories, I've created a GitHub Action that automatically creates the package ZIP file and attach it to GitHub releases.

PS: the ATTACH_ASSETS_SECRET secret (and the related personal access token) is no more needed (but please configure GITHUB_TOKEN as described in the requirements section).

I've already added this action to https://github.com/concretecms-community-store/community_store_bcc_payway (see the action and the release).

mlocati commented 1 year ago

PS: I'm pretty sure that @hissy too uses composerpkg, so Concrete Japan too may find https://github.com/concrete5-community/gh-package-release-attach useful :wink:

Mesuva commented 1 year ago

@mlocati I just created a new release, and this action worked within a few seconds. Absolutely amazing work!

And since the translate.concretecms.org side of things is automated now too, there's no manual handling involved with releases.

I haven't tried a composer install yet, but Packagist is all updating correctly too. 🍻

mlocati commented 1 year ago

Absolutely amazing work!

Yep, that's really handy :wink:

I haven't tried a composer install yet, but Packagist is all updating correctly too. 🍻

I've been using it for a couple of weeks so far, and everything seems to work just fine. If you want to check it yourself, simply download (or clone) https://github.com/mlocati/concretecms-skeleton and run composer require concretecms-community-store/community_store: in a few seconds you'll have a Concrete + Community Store project 😋