This repo attempts to create multiple, versioned packages of some content and attach it to the repo.
It uses make
for the workflow to combine both composer
and npm
.
That requires
- make
- npm
- composer
-
make install
calls composer install, npm install, etc -
make compile
-
make compile-css
using node, compiles sass to css insrc/assets/css
-
make compile-html
using php, compiles twig to html insrc/docs/html
-
-
make packages
copies files to various/build/(package)
-
make release tag=$tag
either callsnpm version $tag && npm publish
to github for each package and/or callshub release edit -a *tgz
for each zipped package. this target is called by a github action, see below -
make clean
remove generated files in/build/(package)
,src/assets/css
andsrc/docs/html
Packaging is set up following
To add a new package, create new targets in the makefile
for package-YOURPACKAGE
and release-YOURPACKAGE
Releasing is done using a Github action, on Release
.
Use the Github UI to create a new release. Make sure
to use a valid semantic version as a tag name (for NPM).
A new release creates either npm packages and/or github release assets for every build in the build dir.
If you want to call the make release $version
target from the command
line, you can; it would require a github token with packages
privileges to be set in .npmrc
in this repo; see .npmrc-dist
for an example; and the hub
command installed. Also a release with
version $version would already have to exist on github.