ivoa / ivoa-web

ivoa.net website static web pages
Creative Commons Attribution Share Alike 4.0 International
3 stars 2 forks source link

Create workflow to build and deploy website using hugo #4

Closed JeremyMcCormick closed 5 months ago

JeremyMcCormick commented 7 months ago

Add a workflow to build the static site using hugo and then upload to the web server using scp.

Hugo binary can be installed from here:

https://github.com/gohugoio/hugo/releases/download/v0.122.0/hugo_0.122.0_Linux-64bit.tar.gz

Requires the following setup for access:

(above setup items for @molinaro-m to complete)

molinaro-m commented 6 months ago

Some steps done. The target directory is ivoa-web-stage reachable via cd from an sftp call through sftp webstage@web.ivoa.net.

Keys for webstage user have been created.

About the one to be added to repo secrets: should it go into deploy keys or under secrets and variables possibly codespaces section?

molinaro-m commented 6 months ago

STAGE_ID added to repository secrets, useful for webstage user on ivoa.info. Remember to cd into ivoa-web-stage once opened sftp connection.

If all works, I suppose a test is needed, this issue can be closed.

JeremyMcCormick commented 6 months ago

Thank you for setting everything up, @molinaro-m

I plan to use this gh action:

https://github.com/marketplace/actions/sftp-upload

JeremyMcCormick commented 5 months ago

This was resolved in #7