Skip to content

Commit

Permalink
Add theme as a git submodule and update it
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Apr 23, 2024
1 parent 6aa125c commit a066cb9
Show file tree
Hide file tree
Showing 186 changed files with 12 additions and 13,877 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ jobs:
token: ${{ secrets.BUILD_WEBSITE_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Init theme submodule
run: git submodule update --init

- name: Copy custom CSS in theme
run: cp custom.css themes/anatole/assets/css/custom.css

- name: Build website
run: rm -rf public && hugo

- name: Commit automated build
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
if [ "$(git status --porcelain)" ]; then
git add .
if [ "$(git status --porcelain public)" ]; then
git add public
git commit -m "Automated build"
git push
else
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/anatole"]
path = themes/anatole
url = https://github.com/lxndrblz/anatole.git
File renamed without changes.
1 change: 1 addition & 0 deletions themes/anatole
Submodule anatole added at 1db307
3 changes: 0 additions & 3 deletions themes/anatole/.commitlintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions themes/anatole/.gitattributes

This file was deleted.

34 changes: 0 additions & 34 deletions themes/anatole/.github/CONTRIBUTING.md

This file was deleted.

2 changes: 0 additions & 2 deletions themes/anatole/.github/FUNDING.yml

This file was deleted.

42 changes: 0 additions & 42 deletions themes/anatole/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

19 changes: 0 additions & 19 deletions themes/anatole/.github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

45 changes: 0 additions & 45 deletions themes/anatole/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

17 changes: 0 additions & 17 deletions themes/anatole/.github/stale.yml

This file was deleted.

26 changes: 0 additions & 26 deletions themes/anatole/.github/workflows/format.yml

This file was deleted.

33 changes: 0 additions & 33 deletions themes/anatole/.github/workflows/update-resources.yml

This file was deleted.

8 changes: 0 additions & 8 deletions themes/anatole/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions themes/anatole/.husky/commit-msg

This file was deleted.

7 changes: 0 additions & 7 deletions themes/anatole/.prettierignore

This file was deleted.

17 changes: 0 additions & 17 deletions themes/anatole/.prettierrc

This file was deleted.

21 changes: 0 additions & 21 deletions themes/anatole/.release-it.json

This file was deleted.

Loading

0 comments on commit a066cb9

Please sign in to comment.