Compare commits

..

No commits in common. "739c7a43657a74f2968b23a50bdae2dc63d00bc8" and "7b64c83876be3977715ebe31256c1b2ab66442ba" have entirely different histories.

2 changed files with 42 additions and 63 deletions

View file

@ -11,60 +11,53 @@ jobs:
steps: steps:
- uses: actions/checkout@v2.4.0 - uses: actions/checkout@v2.4.0
# - name: env-yaml-file - name: env-yaml-file
# uses: pietrobolcato/action-read-yaml@main uses: pietrobolcato/action-read-yaml@main
# id: read_action_js id: read_action_js
# with:
# config: ${{ github.workspace }}/deploy_env.yaml
# env-var-prefix: myEnv
- name: env-toml-file
uses: SebRollen/toml-action@v1.2.0
id: read_toml
with: with:
file: 'hugo.toml' config: ${{ github.workspace }}/deploy_env.yaml
field: 'environment' env-var-prefix: myEnv
# - name: Set up Go - name: Set up Go
# uses: actions/setup-go@v5.0.0 uses: actions/setup-go@v5.0.0
# with: with:
# go-version: '1.20.5' go-version: '1.20.5'
# - name: Cache Go modules - name: Cache Go modules
# uses: actions/cache@v3 uses: actions/cache@v3
# with: with:
# path: ~/go/pkg/mod path: ~/go/pkg/mod
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-go- ${{ runner.os }}-go-
# - name: Set up Node.js - name: Set up Node.js
# uses: actions/setup-node@v4.0.2 uses: actions/setup-node@v4.0.2
# with: with:
# node-version: '20' node-version: '20'
# cache: 'npm' cache: 'npm'
# - name: Cache Node modules - name: Cache Node modules
# uses: actions/cache@v3 uses: actions/cache@v3
# with: with:
# path: ~/.npm path: ~/.npm
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
# restore-keys: | restore-keys: |
# ${{ runner.os }}-node- ${{ runner.os }}-node-
# - name: Install PostCSS - name: Install PostCSS
# run: | run: |
# npm install -g postcss postcss-cli npm install -g postcss postcss-cli
# npm install autoprefixer npm install autoprefixer
# - name: Set up Hugo Extended - name: Set up Hugo Extended
# uses: peaceiris/actions-hugo@v3.0.0 uses: peaceiris/actions-hugo@v3.0.0
# with: with:
# hugo-version: '0.121.2' hugo-version: '0.121.2'
# extended: true extended: true
# - name: Build Hugo site - name: Build Hugo site
# run: hugo --minify run: hugo --minify
- name: Setup rsync - name: Setup rsync
run: apt-get update && apt-get install -y rsync run: apt-get update && apt-get install -y rsync
@ -75,29 +68,15 @@ jobs:
ssh-private-key: ${{ secrets.VFO_SSH_KEY }} ssh-private-key: ${{ secrets.VFO_SSH_KEY }}
- name: Deploy to Development - name: Deploy to Development
if: steps.read_toml.outputs.environment == 'development' if: env.myEnv_env == 'development'
run: | run: |
rsync -avz --delete ./public/ verua.info@verua.info:/preview.verua.info/ rsync -avz --delete ./public/ verua.info@verua.info:/preview.verua.info/
env: env:
RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no' RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no'
- name: Deploy to Production - name: Deploy to Production
if: steps.read_toml.outputs.environment == 'production' if: env.myEnv_env == 'production'
run: | run: |
rsync -avz --delete ./public/ verua.info@verua.info:/httpdocs/ rsync -avz --delete ./public/ verua.info@verua.info:/httpdocs/
env: env:
RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no' RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no'
# - name: Deploy to Development
# if: env.myEnv_env == 'development'
# run: |
# rsync -avz --delete ./public/ verua.info@verua.info:/preview.verua.info/
# env:
# RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no'
# - name: Deploy to Production
# if: env.myEnv_env == 'production'
# run: |
# rsync -avz --delete ./public/ verua.info@verua.info:/httpdocs/
# env:
# RSYNC_RSH: 'ssh -p 2121 -o StrictHostKeyChecking=no'

View file

@ -15,7 +15,7 @@ defaultContentLanguage = "de"
# disable language # disable language
disableLanguages = ["en"] disableLanguages = ["en"]
hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage hasCJKLanguage = false # If hasCJKLanguage true, auto-detect Chinese/Japanese/Korean Languages in the content. see: https://gohugo.io/getting-started/configuration/#hascjklanguage
environment = "development"
########################### Services ############################# ########################### Services #############################
[services] [services]