diff options
author | Tom Willemse | 2022-03-23 19:05:29 -0700 |
---|---|---|
committer | Tom Willemse | 2022-03-23 19:05:29 -0700 |
commit | ba5d9c29f3defd28c5973d257a86f910deb78986 (patch) | |
tree | 7478652177e7a39cbfc575b83cd68f6dfe0aa808 /.build | |
parent | 39ba8e49d69c2abc904e28c8cdfeb782e3c065fe (diff) | |
download | tekuti-el-ba5d9c29f3defd28c5973d257a86f910deb78986.tar.gz tekuti-el-ba5d9c29f3defd28c5973d257a86f910deb78986.zip |
Set up automated builds on Sourcehut
This builds both a package archive and the readme.
Diffstat (limited to '.build')
-rw-r--r-- | .build/pages.yml | 17 | ||||
-rw-r--r-- | .build/readme.yml | 20 |
2 files changed, 37 insertions, 0 deletions
diff --git a/.build/pages.yml b/.build/pages.yml new file mode 100644 index 0000000..c86a3ee --- /dev/null +++ b/.build/pages.yml @@ -0,0 +1,17 @@ +image: alpine/latest +oauth: pages.sr.ht/PAGES:RW +packages: + - make + - emacs-nox + - git +tasks: + - stamp-version: | + cd tekuti-el + make stamp-version + - package: | + cd tekuti-el + make package + - upload: | + cd tekuti-el + acurl -f "https://pages.sr.ht/publish/ryuslash.srht.site/pcomplete-p4/elpa/" \ + -Fcontent=@pcomplete-p4.tar.gz diff --git a/.build/readme.yml b/.build/readme.yml new file mode 100644 index 0000000..32deacc --- /dev/null +++ b/.build/readme.yml @@ -0,0 +1,20 @@ +image: alpine/latest +packages: + - make + - emacs-nox +secrets: + - 71a00305-bdc9-4108-84a0-2d42d5f824d6 +tasks: + - build: | + cd tekuti-el + make README.html + - readme: | + cd tekuti-el + set +x + curl --fail-with-body \ + -H "Content-Type: text/html" \ + -H "Authorization: Bearer $(cat ~/.pcomplete-p4-auth)" \ + -XPUT \ + --data-binary @README.html \ + 'https://git.sr.ht/api/repos/tekuti-el/readme' \ + && echo "README set" |