From 91f6057b50ec9745ec0161067930959fb63a0ef9 Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Date: Mon, 12 Jul 2021 18:14:30 -0500 Subject: [PATCH 1/3] Add an action to deploy the webpage automatically --- .github/workflows/deploy.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..fe796b7 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,37 @@ +name: github pages + +on: + push: + branches: + - main # Set a branch to deploy + pull_request: + +jobs: + deploy: + runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v2 + with: + submodules: true # Fetch Hugo themes (true OR recursive) + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: '0.80.0' + extended: true + + - name: Create site + run: | + hugo + touch public/.nojekyll + echo data-apis.org > public/CNAME + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public From f809ae348f9dc1e5c72f2cc845c7761ea53ba6d0 Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Date: Mon, 12 Jul 2021 18:17:10 -0500 Subject: [PATCH 2/3] Remove running deployment on pull requests --- .github/workflows/deploy.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fe796b7..cda38fc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,7 +4,6 @@ on: push: branches: - main # Set a branch to deploy - pull_request: jobs: deploy: From 8046389f834d9d8736f158cd17b75b7419d5c372 Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Tue, 26 Apr 2022 23:05:26 +0200 Subject: [PATCH 3/3] Update to newer Hugo version --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cda38fc..4ac8f53 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.80.0' + hugo-version: '0.97.0' extended: true - name: Create site