From 8d57178dcb24beda7cadc518b0897749282da4bf Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Thu, 11 Jul 2024 13:13:26 +0900 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=EB=A1=9C=20=EB=B9=8C=EB=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yaml | 24 ++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/main.yaml 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/