Skip to content

Create workflow to build and deploy website using hugo #4

Closed

Description

@JeremyMcCormick

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:

  • Account on the server with proper directory permissions
  • Public key added to ~/ssh/authorized_keys
  • Private key added to repository secrets
  • Need to know target directory on the server

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

Activity

  1. molinaro-m commented on Feb 22, 2024

    @molinaro-m
    Member

    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?

  2. molinaro-m commented on Feb 22, 2024

    @molinaro-m
    Member

    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.

  3. JeremyMcCormick commented on Feb 22, 2024

    @JeremyMcCormick
    CollaboratorAuthor

    Thank you for setting everything up, @molinaro-m

    I plan to use this gh action:

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

  4. JeremyMcCormick commented on Mar 13, 2024

    @JeremyMcCormick
    CollaboratorAuthor

    This was resolved in #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions