plopcas / hugo-s3-action Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to use `hugo deploy` configured with an S3 target
License: MIT License
GitHub Action to use `hugo deploy` configured with an S3 target
License: MIT License
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.
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.
It would be good if when generating the static pages we could pass the --minify
flag to it in order to optimize the generated files.
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.