diff --git a/.gitea/workflows/pipeline-test.yaml b/.gitea/workflows/pipeline-test.yaml index fd59a01..2eebd84 100644 --- a/.gitea/workflows/pipeline-test.yaml +++ b/.gitea/workflows/pipeline-test.yaml @@ -16,51 +16,51 @@ jobs: id: read_toml with: file: 'hugo.toml' - field: 'environment' + field: 'params.environment' - name: Echo environment run: echo "Environment is ${{ steps.read_toml.outputs.value }}" - - name: Set up Go - uses: actions/setup-go@v5.0.0 - with: - go-version: '1.20.5' + # - name: Set up Go + # uses: actions/setup-go@v5.0.0 + # with: + # go-version: '1.20.5' - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + # - name: Cache Go modules + # uses: actions/cache@v3 + # with: + # path: ~/go/pkg/mod + # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + # restore-keys: | + # ${{ runner.os }}-go- - - name: Set up Node.js - uses: actions/setup-node@v4.0.2 - with: - node-version: '20' - cache: 'npm' + # - name: Set up Node.js + # uses: actions/setup-node@v4.0.2 + # with: + # node-version: '20' + # cache: 'npm' - - name: Cache Node modules - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + # - name: Cache Node modules + # uses: actions/cache@v3 + # with: + # path: ~/.npm + # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + # restore-keys: | + # ${{ runner.os }}-node- - - name: Install PostCSS - run: | - npm install -g postcss postcss-cli - npm install autoprefixer + # - name: Install PostCSS + # run: | + # npm install -g postcss postcss-cli + # npm install autoprefixer - - name: Set up Hugo Extended - uses: peaceiris/actions-hugo@v3.0.0 - with: - hugo-version: '0.121.2' - extended: true + # - name: Set up Hugo Extended + # uses: peaceiris/actions-hugo@v3.0.0 + # with: + # hugo-version: '0.121.2' + # extended: true - - name: Build Hugo site - run: hugo --minify + # - name: Build Hugo site + # run: hugo --minify - name: Setup rsync run: apt-get update && apt-get install -y rsync diff --git a/hugo.toml b/hugo.toml index f15b958..3343ea0 100755 --- a/hugo.toml +++ b/hugo.toml @@ -19,7 +19,7 @@ hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/K enableRobotsTXT = true ########################### Deployment ############################# -# set to "development" or "production" to deploy the site to the correct environment and set robots.txt to disallow all +# set to "development" or "production". This deploys the site to the correct environment and sets the robot.txt to disallow all pages when in development mode. [params] environment = "development"