Add hyva #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ποΈ Deploy site | |
on: | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: ποΈ Deploy site | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬ Checkout | |
uses: actions/checkout@v4 | |
- name: π· Build the project | |
run: | | |
docker run --rm -i -v "$(pwd):/src" klakegg/hugo | |
- name: πͺ’ Get build repository | |
run: | | |
git config --global url.https://github.com/.insteadOf git://github.com/ | |
git clone --depth 1 https://github.com/opengento/opengento.github.io.git | |
- name: π Copy release | |
run: | | |
cp -R public/* opengento.github.io | |
- name: π€ Commit changes | |
run: | | |
cd opengento.github.io | |
git remote set-url origin https://x-access-token:${{ secrets.ACTIONS_GITHUB_TOKEN }}@github.com/opengento/opengento.github.io.git | |
git config --global user.email "actions@github.com" | |
git config --global user.name "π€ Github Commit Hook" | |
git add -A . | |
git commit -a -m "rebuilding site `date`" | |
git push origin master |