add docs/redirect site for shorter download link

This commit is contained in:
Daylin Morgan 2024-07-19 13:16:10 -05:00
parent a7ac1dd094
commit 455f972e92
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 50 additions and 0 deletions

40
.github/workflows/docs.yml vendored Normal file
View file

@ -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

1
docs/CNAME Normal file
View file

@ -0,0 +1 @@
swydd.dayl.in

9
docs/index.html Normal file
View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<link rel="canonical" href="https://github.com/daylinmorgan/swydd"/>
<meta name="robots" content="noindex">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="0; url=https://github.com/daylinmorgan/swydd"/>
</head>
</html>