Skip to content

Merge pull request #41 from septoctobre/feat/internal-links #6

Merge pull request #41 from septoctobre/feat/internal-links

Merge pull request #41 from septoctobre/feat/internal-links #6

name: Deploy production
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
ref: "master"
- name: Setup hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.83.1"
extended: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '15'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
# - name: Build BE
# # remove --minify tag if you do not need it
# # docs: https://gohugo.io/hugo-pipes/minification/
# run: |
# npm ci
# hugo --config config.toml,configbe.toml --minify
# cp .gitignore public
# echo "be.lumao.eu" > public/CNAME
# - name: Pushes to another repository BE
# uses: cpina/github-action-push-to-another-repository@master
# env:
# API_TOKEN_GITHUB: ${{ secrets.TOKEN }}
# with:
# source-directory: 'public'
# destination-github-username: 'LavoWeb'
# destination-repository-name: 'LumaoBe'
# user-email: [email protected]
- name: Build CH
run: |
npm ci
hugo --config config.toml,configch.toml --minify
cp .gitignore public
echo "lumao.ch" > public/CNAME
- name: Pushes to another repository CH
uses: cpina/github-action-push-to-another-repository@master
env:
API_TOKEN_GITHUB: ${{ secrets.TOKEN }}
with:
source-directory: 'public'
destination-github-username: 'LavoWeb'
destination-repository-name: 'LumaoCh'
user-email: [email protected]
# - name: Build LU
# run: |
# hugo --config config.toml,configch.toml --minify
# cp .gitignore public
# echo "lu.lumao.eu" > public/CNAME
#
# - name: Pushes to another repository LU
# uses: cpina/github-action-push-to-another-repository@master
# env:
# API_TOKEN_GITHUB: ${{ secrets.TOKEN }}
# with:
# source-directory: 'public'
# destination-github-username: 'LavoWeb'
# destination-repository-name: 'LumaoLu'
# user-email: [email protected]
- name: Build FR
run: |
npm ci
hugo --config config.toml --minify
cp .gitignore public
echo "lumao.eu" > public/CNAME
- name: Pushes to another repository FR
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.TOKEN }}
with:
source-directory: 'public'
destination-github-username: 'LavoWeb'
destination-repository-name: 'Lumao'
user-email: [email protected]
target-branch: master