From 9abba4ccddc4f0414e145a29d7a2169073cbb54d Mon Sep 17 00:00:00 2001 From: Kreyren Date: Sun, 16 Feb 2020 18:45:31 +0000 Subject: [PATCH] sagasg --- .github/workflows/Jekyll_publish.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/Jekyll_publish.yml diff --git a/.github/workflows/Jekyll_publish.yml b/.github/workflows/Jekyll_publish.yml new file mode 100644 index 0000000..12b4f87 --- /dev/null +++ b/.github/workflows/Jekyll_publish.yml @@ -0,0 +1,31 @@ +# Workflow for CPP +name: Jekyll Publish + +# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows +on: + push: + branches: + - master + - init_new + paths: + - 'docs/_posts/**' + +jobs: + jekyll: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Get dependencies (FIXME-UPSTREAM) + run: sudo gem install jekyll + + - name: Building.. + # FIXME: Avoid using `cd` + run: cd docs && jekyll build + + - name: Deploying.. + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} + GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} + uses: BryanSchuetz/jekyll-deploy-gh-pages@master