From 91c39796c4e98e97673beafbf8a4448f56cec41e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 6 Mar 2020 13:30:01 +0100 Subject: [PATCH 1/6] test deploy --- .github/workflow/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflow/main.yml diff --git a/.github/workflow/main.yml b/.github/workflow/main.yml new file mode 100644 index 0000000000..53cab18436 --- /dev/null +++ b/.github/workflow/main.yml @@ -0,0 +1,18 @@ +name: Jekyll Deploy + +on: + push: + branches: + - master + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Build & Deploy to GitHub Pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.GITHUB_REPOSITORY }} + GITHUB_ACTOR: ${{ github.GITHUB_ACTOR }} + uses: BryanSchuetz/jekyll-deploy-gh-pages@master From d0897a4e791eb827bb7af3c2e6f329812e044782 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 6 Mar 2020 13:31:37 +0100 Subject: [PATCH 2/6] typo --- .github/{workflow => workflows}/main.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{workflow => workflows}/main.yml (100%) diff --git a/.github/workflow/main.yml b/.github/workflows/main.yml similarity index 100% rename from .github/workflow/main.yml rename to .github/workflows/main.yml From a04197f8d7b9563140b0df39b79ee402d692224e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 6 Mar 2020 15:25:10 +0100 Subject: [PATCH 3/6] docs: wip --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d4b0279422..1a3e1ca203 100755 --- a/README.md +++ b/README.md @@ -30,7 +30,9 @@ ## Setup 0. :star: to the project. :metal: +1. Generate an [access token](https://github.com/settings/tokens/new) with `repo` scope 2. Fork the project [Indigo](https://github.com/sergiokopplin/indigo/fork) +3. Add secret in `project settings > secrets` with your access token as `GITHUB_TOKEN` 3. Edit `_config.yml` with your data (check settings section) 4. Write some posts :bowtie: From 92e85f73e815679c1fd14e53ab830313af65bd5c Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 8 Mar 2020 21:44:36 +0100 Subject: [PATCH 4/6] test --- .github/workflows/main.yml | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53cab18436..69e55b4783 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v1 - name: Build & Deploy to GitHub Pages env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} GITHUB_REPOSITORY: ${{ github.GITHUB_REPOSITORY }} GITHUB_ACTOR: ${{ github.GITHUB_ACTOR }} - uses: BryanSchuetz/jekyll-deploy-gh-pages@master + uses: sylvainmetayer/jekyll-deploy-gh-pages@master diff --git a/README.md b/README.md index 1a3e1ca203..66114b6a97 100755 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ 0. :star: to the project. :metal: 1. Generate an [access token](https://github.com/settings/tokens/new) with `repo` scope 2. Fork the project [Indigo](https://github.com/sergiokopplin/indigo/fork) -3. Add secret in `project settings > secrets` with your access token as `GITHUB_TOKEN` +3. Add secret in `project settings > secrets` with your access token as `DEPLOY_TOKEN` 3. Edit `_config.yml` with your data (check settings section) 4. Write some posts :bowtie: From 3d27aba9f727555501e103a8561fa2dbece6a89a Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 8 Mar 2020 21:58:41 +0100 Subject: [PATCH 5/6] remove DEPLOY_TOKEN, use GITHUB_TOKEN instead --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 66114b6a97..ba5aa7b5fa 100755 --- a/README.md +++ b/README.md @@ -30,11 +30,9 @@ ## Setup 0. :star: to the project. :metal: -1. Generate an [access token](https://github.com/settings/tokens/new) with `repo` scope -2. Fork the project [Indigo](https://github.com/sergiokopplin/indigo/fork) -3. Add secret in `project settings > secrets` with your access token as `DEPLOY_TOKEN` -3. Edit `_config.yml` with your data (check settings section) -4. Write some posts :bowtie: +1. Fork the project [Indigo](https://github.com/sergiokopplin/indigo/fork) +2. Edit `_config.yml` with your data (check settings section) +3. Write some posts :bowtie: If you want to test locally on your machine, do the following steps also: From 8bde4ddca42b42e42d6a411de7334c7e15df088c Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 8 Mar 2020 21:59:09 +0100 Subject: [PATCH 6/6] use github token --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 69e55b4783..58be2ca646 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v1 - name: Build & Deploy to GitHub Pages env: - DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_REPOSITORY: ${{ github.GITHUB_REPOSITORY }} GITHUB_ACTOR: ${{ github.GITHUB_ACTOR }} uses: sylvainmetayer/jekyll-deploy-gh-pages@master