Skip to content

Commit

Permalink
Merge branch 'mastergithub' into feat/next
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienLavorel committed Oct 31, 2023
2 parents 8f38f4d + 69e25b1 commit 6c2268b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI
on: push
name: Deploy production
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-20.04
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy staging
on:
push:
branches:
- feat/next
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
ref: "feat/next"

- 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 FR
run: |
npm ci
hugo --config config.toml --minify -b https://next.lumao.eu/
cp .gitignore public
echo "next.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: 'LumaoNext'
user-email: [email protected]
target-branch: master

0 comments on commit 6c2268b

Please sign in to comment.