Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus2k2 committed Jun 23, 2024
1 parent 405a9ab commit 10be6dc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
name: ci
name: ci

on:
push:
branches:
- main

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build PT docs
uses: ./
with:
entrypoint: mkdocs
args: build --config-file=mkdocs.pt.yml

- name: Build EN docs
uses: ./
with:
entrypoint: mkdocs
args: build --config-file=mkdocs.en.yml

# - name: Copy redirect index page
# run: sudo cp /index.html /site
- name: Copy redirect index page
run: cp docs/index.html site/index.html

- uses: actions/setup-python@v4
with:
Expand All @@ -41,7 +47,11 @@ jobs:
with:
key: ${{ github.ref }}
path: .cache

- run: pip install mkdocs-material

- run: pip install mike --force-reinstall --verbose

# - run: mike deploy --push --update-aliases 1.0 latest --ignore
# - run: mkdocs gh-deploy --force

# - run: mkdocs gh-deploy --force
10 changes: 10 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Redirect</title>
<meta http-equiv="refresh" content="5; URL='https://mateus2k2.github.io/blog/en/'"/>
</head>
<body>
</body>
</html>

0 comments on commit 10be6dc

Please sign in to comment.