Welcome to mirror list, hosted at ThFree Co, Russian Federation.

hugo-resources.yml « workflows « .github - github.com/WingLim/hugo-tania.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2adb8b3b26712285c54fcfe25fa8eb103732819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Hugo Resources

on:
  push:
    branches: [main]
    paths:
      - '**/*.scss'
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Hugo setup
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: latest
          extended: true
      
      - name: Generate hugo site
        run: cd exampleSite && hugo --gc --themesDir ../..
      
      - name: Copy resources
        run: cp -r exampleSite/resources .
      
      - name: Commit & Push resources
        uses: EndBug/add-and-commit@v7
        with:
          default_author: github_actions
          add: 'resources'
          message: "chore: update resources"
          pull_strategy: 'NO-PULL'