diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e920020..0bbf86f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,18 +6,25 @@ on: - master jobs: - build: - name: Deploy to Github Pages - runs-on: ubuntu-latest + deploy: + runs-on: ubuntu-18.04 steps: - - name: Checkout master - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + with: + submodules: true # Fetch Hugo themes + fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - - name: Deploy the site - uses: benmatselby/hugo-deploy-gh-pages@master - env: - HUGO_VERSION: 0.69.0 - TARGET_REPO: shadowlion/personal - TOKEN: ${{ secrets.TOKEN }} - HUGO_ARGS: '-t hugo-devresume-theme' - CNAME: shadowlion.github.io + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + # extended: true + + - name: Build + run: hugo --minify + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.TOKEN }} + publish_dir: ./public