Skip to content

Commit

Permalink
ci: add GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SebaOfficial committed Sep 20, 2024
1 parent a4de2c1 commit a0c6e43
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./static
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
10 changes: 10 additions & 0 deletions static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; URL='https://linksharer.js.org/'" />
<title>Redirecting...</title>
</head>
<body>
<p>If you are not redirected, <a href="https://linksharer.js.org/">click here</a>.</p>
</body>
</html>
File renamed without changes.

0 comments on commit a0c6e43

Please sign in to comment.