From 455f972e921f0355ca7724f538e11bb6687dd694 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 19 Jul 2024 13:16:10 -0500 Subject: [PATCH] add docs/redirect site for shorter download link --- .github/workflows/docs.yml | 40 ++++++++++++++++++++++++++++++++++++++ docs/CNAME | 1 + docs/index.html | 9 +++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/workflows/docs.yml create mode 100644 docs/CNAME create mode 100644 docs/index.html diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..176f0bf --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,40 @@ +name: GitHub Pages + +on: + push: + tags: [ "v*.*" ] + workflow_dispatch: + + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + + - run: cp src/swydd/__init__.py docs/swydd.py + + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: ./docs + + deploy: + runs-on: ubuntu-latest + needs: build + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..6ed7785 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +swydd.dayl.in diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..66865ef --- /dev/null +++ b/docs/index.html @@ -0,0 +1,9 @@ + + + + + + + + +