Comments (3)
How about the following?
- name: Build
run: |
hugo --gc --minify --cleanDestinationDir
cp ./path/to/CNAME ./public/CNAME
- name: Deploy
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./public
And, most of the Static Site Generators can support CNAME
as static files.
How Gatsby Works with GitHub Pages | GatsbyJS
Note: Donβt forget to add your CNAME file to the static directory.
The same may be said of other files (.nojekyll
BingSiteAuth.xml
robots.txt
). I think that it is better to manage those files by Static Site Generators.
from actions-gh-pages.
Oh, I see. I used to set the CNAME via TravisCI, and it seems better to set it in the project.
from actions-gh-pages.
This issue has been LOCKED because of it being resolved!
The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.
from actions-gh-pages.
Related Issues (20)
- support: `keep_files` and multiple docs versions
- proposal: keeping_ Files can be a string type, filtering files through wildcards.
- proposal: keep_ files can be a string type, filtering files through wildcards.
- support: can an application token be used to deploy? HOT 4
- support: Pushing to external repo fails HOT 1
- proposal: update node version to 20 HOT 2
- support: Unable to locate executable file: git.
- support: Error: Action failed with "The process '/usr/bin/git' failed with exit code 128" HOT 5
- proposal: Please create a new release to include the Node 20 version bump HOT 11
- support:
- support: Cannot push to protected branches using Enterprise TOKEN HOT 3
- support: action failed with "fetch first" hint HOT 3
- proposal: Add an option to allow deploying into the main branch
- proposal: destination_dir with recursive option.
- support: Actions/cache for Hugo modules with Hugo v0.127.0 HOT 5
- support: Error: Unable to resolve actions. Cannot access repositories 'peaceiris/actions-gh-pages' HOT 12
- support: Github Pages not deployed, even when action is successfull HOT 7
- support: Is there a way for me to try a github action to commit a file to gh-page branch from a PR created by a forked repo? HOT 3
- proposal: Issue a warning if content is to large
- support: Action failed with "The process '/usr/bin/git' failed with exit code 1" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-gh-pages.