Merge pull request #1 from RodrigoSdeCarvalho/update-database #12
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" | |
on: push | |
jobs: | |
deploy-gh-pages: | |
name: Deploy | |
runs-on: ubuntu-latest | |
container: | |
image: caravelahc/matrufsc:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Compile | |
run: | | |
./configure --base-path=bin | |
SITE_PATH=bin make | |
- name: Deploy | |
run: | | |
git config user.email [email protected] | |
git config user.name caravelabot | |
git remote add pages https://caravelabot:${DEPLOY_ACCESS_TOKEN}@github.com/caravelahc/beta-matrufsc.git | |
git fetch | |
git checkout -f gh-pages | |
cp bin/* . | |
git add -u | |
git commit -m "Deploy $(git log -n1 --format=format:'%h')" || true | |
git push pages gh-pages -f |