Skip to content

Commit 9ce39fc

Browse files
committed
chore(website): deploy using GitHub Actions
1 parent 6790f12 commit 9ce39fc

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

.github/workflows/website.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build Website
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: true
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Make edits
26+
run: sed -i '/^<video/d' README.md
27+
28+
- name: Setup Pages
29+
uses: actions/configure-pages@v3
30+
31+
- name: Build
32+
uses: actions/jekyll-build-pages@v1
33+
34+
- name: Upload artifact
35+
uses: actions/upload-pages-artifact@v1
36+
37+
deploy:
38+
runs-on: ubuntu-latest
39+
needs: build
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v2
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
<a href="https://github.com/orhun/daktilo/actions?query=workflow%3A%22Release%22"><img src="https://img.shields.io/github/actions/workflow/status/orhun/daktilo/release.yml?style=flat&amp;labelColor=1D272B&amp;color=819188&amp;logo=GitHub%20Actions&amp;logoColor=white&amp;label=release" alt="Continuous Deployment"></a>
1515
<a href="https://docs.rs/daktilo/"><img src="https://img.shields.io/docsrs/daktilo?style=flat&amp;labelColor=1D272B&amp;color=819188&amp;logo=Rust&amp;logoColor=white" alt="Documentation"></a>
1616

17-
<!-- {% comment %} -->
18-
1917
<video src="https://github.com/orhun/daktilo/assets/24392180/e523662e-8dcc-421c-a8f6-d396d9762e6b" alt="daktilo demo">
2018

21-
<!-- {% endcomment %} -->
22-
2319
</div>
2420

2521
**daktilo** ("typewriter" in Turkish, pronounced _"duck-til-oh"_) is a small command-line program that plays typewriter sounds every time you press a key. It also offers the flexibility to customize keypress sounds to your liking. You can use the built-in sound presets to create an enjoyable typing experience, whether you're crafting emails or up to some prank on your boss.

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# configuration for https://jekyllrb.com/docs/configuration
2+
3+
theme: jekyll-theme-slate

0 commit comments

Comments
 (0)