Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel SepĂșlveda <ansepulveda@uc.cl>2021-07-26 10:17:03 +0300
committerGitHub <noreply@github.com>2021-07-26 10:17:03 +0300
commit5842278182875c330c809a816fab14e5e5731e29 (patch)
tree405d11d023391a15e4201e6b0aecbbfc57f38635 /.github
parent22ef22676be91cf4c7506680264229d346df3e93 (diff)
GitHub actions deploy example to gh pages (#297)
* Create main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update main.yml * Update config.toml * Update main.yml * Works and deploys * Update config.toml * Update config.toml * Update main.yml * Update main.yml * update URL base for the example to work * Update config.toml * add suggested edits
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..24cc9e6
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,35 @@
+name: github pages
+
+on:
+ push:
+ branches:
+ - master # Set a branch to deploy
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: ./exampleSite
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true # Fetch Hugo themes (true OR recursive)
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+
+ - name: Build
+ run: |
+ hugo --minify
+
+ - name: Deploy
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ publish_dir: ./exampleSite/public # if not specified it defaults to ./public. source directory of the built files to make the deploy (must match the build to directory in config.toml), eg ./docs, ./public, ./exampleSite/public
+