Giter VIP home page Giter VIP logo

hugo-s3-action's Introduction

Contributions

hugo-s3-action's People

Contributors

ashishplal avatar plopcas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hugo-s3-action's Issues

Change Dockerfile base?

Hi,

thanks for creating this. I've been using it very happily. Due to Hugo's 0.118.0 dependency update my deployments are currently failing. Currently pahud/awscli-v2:node-lts is being used as the runner image. I personally haven't figured out why node is relevant here, but maybe there's something I missed. This is again is based on amazon/aws-cli:latest, which is based on public.ecr.aws/amazonlinux/amazonlinux:2.

The relevance of using the aws-cli image is not lost on me, but the specific image in use seems almost two years old.

Would it make sense to use the awscli image directly instead? This could also help with future updates and compatibility, I think. The issue for this repo was not resolved with Hugo 0.118.1.

Hugo Deploy does not work with Hugo Modules

When running this action in a repo which uses hugo modules, the following exception is thrown:

/usr/bin/docker run --name a...
README.md
hugo
hugo v0.91.2-1798BD3F+extended linux/amd64 BuildDate=2021-12-23T15:33:34Z VendorInfo=gohugoio
Error: failed to download modules: binary with name "go" not found
Total in 1 ms

Will raise a PR tomorrow with the fix.

stdin: not in gzip format


Run plopcas/[email protected]
  env:
    AWS_REGION: ***
    AWS_ACCESS_KEY_ID: ***
    AWS_SECRET_ACCESS_KEY: ***
    MINIFY: false
/usr/bin/docker run --name a5c76b2a019d81a872446ea36f8527f9ea684a_e61005 --label a5c76b --workdir /github/workspace --rm -e "AWS_REGION" -e "AWS_ACCESS_KEY_ID" -e "AWS_SECRET_ACCESS_KEY" -e "MINIFY" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e...
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
gzip: stdin: not in gzip format
tar: Child returned status 1

`hugo deploy` deploys a fraction of necessary files

Howdy!

Could be user error. When I run hugo then hugo deploy locally, everything is uploaded to S3 as expected. Upon running this action in Github, Hugo deletes everything and only uploads a fraction of the files I'm expecting:

Identified 4 file(s) to upload, totaling 2.1 kB, and 38 file(s) to delete.

What am I doing wrong?

Cheers,
Dan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.