diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c44635e..7726b3d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,36 +1,35 @@ -name: blog deploy pipline +name: blog deploy pipeline on: - push: + push: tags: - - '*' - branches: [ main ] - + - "*" + branches: [main] + env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{github.repository}} + REGISTRY: ghcr.io + IMAGE_NAME: ${{github.repository}} jobs: - build: - runs-on: ubuntu-latest - concurrency: - group: ${{github.workflow}} - ${{github.ref}} - steps: - - name: checkout - uses: actions/checkout@v2 - with: - submodules: true - fetch-depth: 0 - - name: setup hugo - uses: peaceiris/actions-hugo@v2 - with: - hugo-version: '0.92.0' - extended: true - - name: build - run: hugo --minify - - - name: deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{github.ref == 'refs/heads/main'}} - with: - github_token: ${{secrets.GITHUB_TOKEN}} - publish_dir: ./public + build: + runs-on: ubuntu-latest + concurrency: + group: ${{github.workflow}} - ${{github.ref}} + steps: + - name: checkout + uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 0 + - name: setup hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: "0.125.0" + extended: true + - name: build + run: hugo --minify + - name: deploy + uses: peaceiris/actions-gh-pages@v3 + if: ${{github.ref == 'refs/heads/main'}} + with: + github_token: ${{secrets.GITHUB_TOKEN}} + publish_dir: ./public