|
34 | 34 | uses: actions/checkout@v4 |
35 | 35 | with: |
36 | 36 | submodules: recursive |
37 | | - fetch-depth: 0 |
38 | 37 | - name: Setup Pages |
39 | 38 | id: pages |
40 | 39 | uses: actions/configure-pages@v5 |
|
44 | 43 | npm install -D autoprefixer |
45 | 44 | npm install -D postcss-cli |
46 | 45 | npm install -D postcss |
47 | | - - name: Build with Hugo |
| 46 | + - name: Build with Hugo latest |
48 | 47 | env: |
49 | 48 | HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache |
50 | 49 | HUGO_ENVIRONMENT: production |
|
57 | 56 | --gc \ |
58 | 57 | --theme PaperMod \ |
59 | 58 | --minify \ |
60 | | - --baseURL "${{ steps.pages.outputs.base_url }}/" |
| 59 | + --baseURL "${{ steps.pages.outputs.base_url }}/" |
| 60 | + - name: Build with Hugo v0.1.4 |
| 61 | + env: |
| 62 | + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache |
| 63 | + HUGO_ENVIRONMENT: production |
| 64 | + TZ: America/Los_Angeles |
| 65 | + run: | |
| 66 | + git fetch --prune --unshallow |
| 67 | + git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
| 68 | + git fetch --all --tags |
| 69 | + git checkout tags/v0.1.4 |
| 70 | + hugo \ |
| 71 | + --gc \ |
| 72 | + --theme PaperMod \ |
| 73 | + --minify \ |
| 74 | + --baseURL "${{ steps.pages.outputs.base_url }}/" \ |
| 75 | + --destination ./public/v0.1.4 |
| 76 | + - name: Build with Hugo v0.1.3 |
| 77 | + env: |
| 78 | + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache |
| 79 | + HUGO_ENVIRONMENT: production |
| 80 | + TZ: America/Los_Angeles |
| 81 | + run: | |
| 82 | + git fetch --prune --unshallow |
| 83 | + git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
| 84 | + git fetch --all --tags |
| 85 | + git checkout tags/v0.1.3 |
| 86 | + hugo \ |
| 87 | + --gc \ |
| 88 | + --theme PaperMod \ |
| 89 | + --minify \ |
| 90 | + --baseURL "${{ steps.pages.outputs.base_url }}/" \ |
| 91 | + --destination ./public/v0.1.3 |
| 92 | + - name: Build with Hugo version |
| 93 | + env: |
| 94 | + HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache |
| 95 | + HUGO_ENVIRONMENT: production |
| 96 | + TZ: America/Los_Angeles |
| 97 | + run: | |
| 98 | +
|
61 | 99 | - name: Upload artifact |
62 | 100 | uses: actions/upload-pages-artifact@v3 |
63 | 101 | with: |
|
0 commit comments