- commit
- 30b5ca91d4ef354172c6dc1dfc349bc38c71c292
- parent
- baa201c0aadaf3385b166c4b22fbfcdad89f5e22
- author
- Dami <dami.etoile@gmail.com>
| A | .github/ | 46 | ++++++++++++++++++++++++++++++ |
| A | scripts/ | 15 | ++++++++++ |
@@ -0,0 +1,46 @@
1+name: Deploy Pages2+3+on:4+ push:5+ branches:6+ - main7+ workflow_dispatch:8+9+permissions:10+ contents: read11+ pages: write12+ id-token: write13+14+concurrency:15+ group: pages16+ cancel-in-progress: true17+18+jobs:19+ build:20+ runs-on: ubuntu-latest21+ steps:22+ - name: Check out repository23+ uses: actions/checkout@v424+25+ - name: Configure GitHub Pages26+ uses: actions/configure-pages@v527+28+ - name: Build Pages artifact29+ run: ./scripts/build-pages-site.sh30+31+ - name: Upload Pages artifact32+ uses: actions/upload-pages-artifact@v433+ with:34+ path: .pages-dist35+36+ deploy:37+ if: github.event_name == 'push'38+ needs: build39+ runs-on: ubuntu-latest40+ environment:41+ name: github-pages42+ url: ${{ steps.deployment.outputs.page_url }}43+ steps:44+ - name: Deploy to GitHub Pages45+ id: deployment46+ uses: actions/deploy-pages@v4@@ -0,0 +1,15 @@
1+2+3+set -euo pipefail4+5+repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"6+out_dir="${1:-"$repo_root/.pages-dist"}"7+8+rm -rf "$out_dir"9+mkdir -p "$out_dir"10+11+# Publish the same script bytes at both the vanity root URL and the explicit path.12+cp "$repo_root/select-mate.sh" "$out_dir/index.html"13+cp "$repo_root/select-mate.sh" "$out_dir/select-mate.sh"14+printf 'select-mate.sh\n' > "$out_dir/CNAME"15+touch "$out_dir/.nojekyll"