From 80292b3eb57103a0484aa01c04094dabf6fb9aa6 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Fri, 26 Apr 2024 20:40:29 -0700 Subject: [PATCH 1/4] Create hugo.yml (#938) --- .github/workflows/hugo.yml | 75 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/hugo.yml diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml new file mode 100644 index 000000000..959f0eb7c --- /dev/null +++ b/.github/workflows/hugo.yml @@ -0,0 +1,75 @@ +# Sample workflow for building and deploying a Hugo site to GitHub Pages +name: Deploy Hugo site to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["master"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +# Default to bash +defaults: + run: + shell: bash + +jobs: + # Build job + build: + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.124.1 + steps: + - name: Install Hugo CLI + run: | + wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ + && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - name: Install Dart Sass + run: sudo snap install dart-sass + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Install Node.js dependencies + run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" + - name: Build with Hugo + env: + # For maximum backward compatibility with Hugo modules + HUGO_ENVIRONMENT: production + HUGO_ENV: production + run: | + hugo \ + --minify \ + --baseURL "${{ steps.pages.outputs.base_url }}/" + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + + # Deployment job + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 2ef0bc5631d941f4b1d2726f67491673ca2205cd Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Fri, 26 Apr 2024 20:43:27 -0700 Subject: [PATCH 2/4] Update hugo.yml --- .github/workflows/hugo.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 959f0eb7c..095b95c02 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -56,11 +56,12 @@ jobs: run: | hugo \ --minify \ - --baseURL "${{ steps.pages.outputs.base_url }}/" + --baseURL "${{ steps.pages.outputs.base_url }}/" \ + --source ./website - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: ./public + path: ./website/public # Deployment job deploy: From 375e2e636e1721fc5ada9c740f670fb63e265d08 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Fri, 26 Apr 2024 20:48:13 -0700 Subject: [PATCH 3/4] Update hugo.yml --- .github/workflows/hugo.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index 095b95c02..0e3d40fc5 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -57,7 +57,8 @@ jobs: hugo \ --minify \ --baseURL "${{ steps.pages.outputs.base_url }}/" \ - --source ./website + --source website \ + --destination public - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: From a514ca2b7aa8daf7929af19fc2da3a97a32aac98 Mon Sep 17 00:00:00 2001 From: Liam Beckman Date: Fri, 26 Apr 2024 20:50:33 -0700 Subject: [PATCH 4/4] Update 0.11.0 Download Page --- website/content/download.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/download.md b/website/content/download.md index 04d182210..7eba43b50 100644 --- a/website/content/download.md +++ b/website/content/download.md @@ -1,5 +1,5 @@ --- -title: Download +title: Download 0.11.0 menu: main: weight: -2000 @@ -15,7 +15,7 @@ Funnel is beta quality. APIs might break, bugs exist, data might be lost. ``` brew tap ohsu-comp-bio/formula -brew install funnel@0.11 +brew install funnel ```

Build the lastest development version optional