-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mastergithub' into feat/next
- Loading branch information
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
.github/workflows/main.yml → .github/workflows/deploy_production.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |