Hey folks,
thanks for all replies, nice to hear that I'm not the only one
struggling with this.
Good to see that there are already some tools out there, let me respond
a little here.
This looks nice to automate the generation of a tarball and the JSON,
but I would like to also automate the publishing of the JSON (and I do
not really need to generate a tarball, I'm just planning to github).
Still, seems like there's some useful bits in here to reuse.
Also, the jq tool seems nice. I was planning to write something in
Python (because that's what I like and using bash often gets messy
quickly), but maybe just keeping it simple with bash is the way to go
here.
fredag 6. november 2020 kl. 21:22:18 UTC+1 skrev Alexander Christian:
> It's not yet perfect, but it works:
>
>
https://gitlab.com/konnekting/KonnektingArduinoCore-samd
>
> There's not manual work requiz. Update code, push to girls, wait a few
> moments. That's all, URL is updated.
This indeed looks like what I'd want, except it's for gitlab, uses ant
(bit cumbersome for me personally) and it replaces the existing release
rather than add to it (AFAICS). I do totally like the "json template"
approach you used, though.
Am 6. November 2020 18:58:53 MEZ schrieb 'Owen Lyke' via Developers
> One thing that I'd like to add is the ability to generate the archive
> / tarball files and upload them as assets to a GitHub release tag.
> Currently the files provided by GitHub do not include the contents of
> submodules which is problematic for us.
This is not at all relevent for me, but if I write something, I'll see
if I can keep this in mind (i.e. not make it harder than necessary to
add this later).
On Fri, Nov 6, 2020 at 10:01 AM Alessandro Ranellucci wrote:
> Would something like this work for you? It doesn’t include the git
> commands but maybe it’s a starter.
Indeed looks like something I could use. It's not a full templated
solution, but it shows how to use jq to just override specific values,
which might be more than enough to insert autogenerated values (and
saves a lot of trouble with escaping etc.).
So, thanks again for your input. Since there's nothing that fully fits
my need, I'm planning to write a github action myself, reusing parts of
all your responses where appropriate.
I think that, at least initially, I'm going to just write this as a
workflow that lives completely in my repo itself, to just see how it
works. If others want to add anything, they can just copy my workflow
and do the same. At a later moment, when things have stabilized a bit
more, I guess this workflow could be moved into its own repository, so
it can be included from different places.
AFAIU github has recently introduced "composite" actions, so the same
steps you use inside the workflow itself can now also be used as part of
a reusable action, which makes it easier to make this change (previously
reusable actions could only be javascript code or a shell script inside
docker).
I'll keep you updated of my progress!
Gr.
Matthijs