diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f3fc7ea..5f8c8b5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,29 +1,24 @@ -name: github pages - +name: Build and publish blog on: push: branches: - - main # Set a branch to deploy - pull_request: - + - "main" + pull_request: {} jobs: - deploy: - runs-on: ubuntu-20.04 + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest 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.92.2' - # extended: true - - name: Build - run: hugo --minify - + run: docker run --rm -v $PWD:/workspace ghcr.io/gbraad-redhat/hugo:0.127.0 --minify - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: github.ref == 'refs/heads/main' diff --git a/README.md b/README.md index f514ef6..2934874 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ CRC Blog -------- + +## Build +```shell +$ git clone https://github.com/crc-org/blog +$ cd blog +$ git submodule update +$ podman run --rm -v $PWD:/workspace ghcr.io/gbraad-redhat/hugo:0.127.0 --minify +``` \ No newline at end of file