Commit Graph

4 Commits

Author SHA1 Message Date
Denis 'GNUtoo' Carikli b7e10712a3
Add target to upload the website
The token will need to be added in id_oauth2_bearer.

It's not very safe to pass the content to a command as any user on the
system on which it is run will be able to get the token, though I
didn't find a command line argument in curl to pass it a file path
instead.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-11-22 21:57:52 +01:00
Denis 'GNUtoo' Carikli 0292688c77
Generate a tarball of the website
Sourcehut has a way to setup a static website by uploading a tarball
of the content[1].

Even if we don't end up using Sourcehut, generating a tarball of the
website enables more easy deployments.

Note that we didn't touch to the website code yet, so it still uses
the old URLs, the old image locations, etc.

After creating a token (documentation[1]), the website can then be
uploaded with the following command:
curl \
	--oauth2-bearer "<token>" \
	-Fcontent=@website.tar.gz \
	https://pages.sr.ht/publish/gnutoo.srht.site

[1]https://srht.site/quickstart

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-11-22 21:57:24 +01:00
Denis 'GNUtoo' Carikli 8f469e26a1
Switch to the version without the policy to include nonfree software
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-11-22 20:33:57 +01:00
Denis 'GNUtoo' Carikli db0fb8a251
Initial import
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-11-22 20:33:08 +01:00