Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 16, 2024
0 parents commit b729c1e
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy static content to Pages

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
name: Deploy
if: github.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '.'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
36 changes: 36 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Rust Nostr</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="/" >
<link href="/style.min.css" rel="stylesheet">
</head>
<body>
<div class="flexWrapper">
<div class="content vertical">
<main class="main">
<div class="indexWrapper">
<div>
<img src="logo.png" width="300px" alt="rust-nostr logo">
</div>
<div>
<h1 class="indexHeader">rust-nostr</h1>
</div>
<div class="socialNavbar">
<ul>
<li>
<a href="https://rust-nostr.org/book">Book</a>
</li>
<!-- <li>
<a href="./docs">Rust docs</a>
</li> -->
</ul>
</div>
</div>
</main>
</div>
</div>
</body>
</html>
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b729c1e

Please sign in to comment.