diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..b06cc0f --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,24 @@ +name: main +on: [push] + +jobs: + mkdocs: + runs-on: ubuntu-latest + permissions: + id-token: write + pages: write + deployments: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v4 + - run: pip install --user -r requirements.txt + - run: mkdocs build + - run: echo docs.fedidev.kr > site/CNAME + - uses: actions/upload-pages-artifact@v3 + with: + path: site + - id: deployment + if: github.event_name == 'push' && github.ref_type == 'tag' + uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 21d0b89..b6b3500 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .venv/ +site/