Skip to content

Commit

Permalink
Create gh-pages GitHub Action workflow for automatic website deployme…
Browse files Browse the repository at this point in the history
…nt (#1)

* Create ghpages.yml

* Fix pandoc-citeproc

With workaround for jgm/pandoc-citeproc#420 (comment) .

* Use source branch to store the conf files

* Use Apr iinstead of April

as April seems to create problems
  • Loading branch information
traversaro authored Jan 26, 2020
1 parent a85ddee commit 10eeaac
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Print GitHub context
env:
GITHUB_EVENT: ${{ github.event_name }}
GITHUB_REF: ${{ github.ref }}
run: |
echo $GITHUB_EVENT $GITHUB_REF
- name: Generate Hugo Website
run: |
# workaround https://github.com/jgm/pandoc-citeproc/issues/420#issuecomment-549047862
export LANG=en_US.UTF-8
# Install dependencies
sudo apt install python3 python3-pybtex pandoc-citeproc
sudo snap install hugo
# Generate bibliography pages
cd bibliography
python3 process_bibliography.py traversaro_pubs.bib
cd ..
# Run Hugo
hugo -D
- name: Deploy
if: github.event_name == 'push' && (github.ref == 'refs/heads/source')
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: master
FOLDER: public
2 changes: 1 addition & 1 deletion bibliography/traversaro_pubs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ @article{saccon2017centroidal
keywords={algebra;differential geometry;robot dynamics;differential geometry;rigid body kinematics;robotic system;mechanical connection;geometric mechanics;algebraic condition;orientation frame;multibody dynamics;average angular velocity;centroidal dynamics;Angular velocity;Dynamics;Jacobian matrices;Geometry;Humanoid robots;Heuristic algorithms;Direct/inverse dynamics formulation;humanoid robots;kinematics;multilegged robots;space robotics},
doi={10.1109/LRA.2017.2655560},
ISSN={2377-3774},
month={April},
month={Apr},
}
,
@inproceedings{pucci2016highly,
Expand Down

0 comments on commit 10eeaac

Please sign in to comment.