diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 89f6247c4..3cd954af2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,8 +8,14 @@ on: jobs: build: runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.128.0 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 - uses: actions/checkout@v4 with: token: ${{ github.token }} diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml index eb3b92128..422a0f025 100644 --- a/.github/workflows/fetch.yml +++ b/.github/workflows/fetch.yml @@ -16,10 +16,16 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: [ self-hosted, docsqa ] + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.128.0 # Steps represent a sequence of tasks that will be executed as part of the job 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 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - name: Checkout docs uses: actions/checkout@v4 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72af45107..8d9b672b4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,10 +14,15 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: [ self-hosted, docsqa ] - + runs-on: ubuntu-latest + env: + HUGO_VERSION: 0.128.0 # Steps represent a sequence of tasks that will be executed as part of the job 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 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 with: @@ -44,6 +49,11 @@ jobs: - name: Build index.html run: echo '

Branch ${{ steps.extract_branch.outputs.branch }}

Build triggered by ${{ github.actor }}
Base ${{ github.base_ref }}
Head ${{ github.head_ref }}
Commit ${{ github.sha }}
EH - WC' > public/index.html + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./public + - name: 'Deploy built documentation to www folder on docs-qa' run: rsync -ruva public/ "/www/mie-docs/public/${{ steps.extract_branch.outputs.branch }}/"