Skip to content

Commit

Permalink
chore: Sourcehut -> GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Feb 22, 2024
1 parent 1206e24 commit 64327c9
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 33 deletions.
24 changes: 0 additions & 24 deletions .build.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Deploy site

on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: Setup SSH Key
run: |
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ruby-dev libffi-dev nodejs rsync
gem install bundler
- name: Build
run: |
bundle install
/bin/sh ./updategitinfo.sh
bundle exec jekyll build
- name: Deploy
env:
DEPLOY_USER: ${{ secrets.DEPLOY_USER }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
SITE_PATH: ${{ secrets.SITE_PATH }}
run: |
cd build
rsync -rvlh --delete . $DEPLOY_USER@$DEPLOY_HOST:$SITE_PATH
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This repository contains the source code and assets for my personal homepage, [https://gosha.net](https://gosha.net).

Please feel free to look around and get inspiration. If something is unclear, please [open a ticket](https://todo.sr.ht/~gosha/gosha.net) in the issue tracker or [email me](mailto:[email protected]?subject=Question%20about%20your%20website).
Please feel free to look around and get inspiration. If something is unclear, please [open an issue](https://github.com/goshatch/gosha.net/issues) in the issue tracker or [email me](mailto:[email protected]?subject=Question%20about%20your%20website).

## Running a local copy

Expand All @@ -21,7 +21,7 @@ It's trivial to deploy a copy of this site to Vercel or Netlify. Use the Jekyll

The code for this website is available under the MIT License. See LICENSE for the full text.

Please note that while the source code is freely reusable, content and assets included in this repository are copyrighted, most of the time by me, and by others when specifified. You are free to reuse the source code, but please do not copy or reuse images or other assets without permission.
Please note that while the source code is freely reusable, content and assets included in this repository are copyrighted, most of the time by me, and by others when specified. You are free to reuse the source code, but please do not copy or reuse images or other assets without permission.

The contents of the following directories are excluded from the MIT License and may not be reused:

Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<p>
<a href="/colophon">Colophon</a><br/>
<a href="/accessibility">Accessibility statement</a><br/>
<a href="https://git.sr.ht/~gosha/gosha.net">Source code</a><br/>
<a href="https://github.com/goshatch/gosha.net">Source code</a><br/>
<a href="/feed.xml" class="rss-link">
<span class="link-text">Subscribe to RSS</span>
{% include rss_logo.svg %}
Expand Down
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- Greetings, Netrunner!
I learned to write HTML, CSS, and Javascript by looking through the source
code of many, many websites. Please, feel free to dig through! The source
code is available on Sourcehut: https://git.sr.ht/~gosha/gosha.net,
code is available on GitHub: https://github.com/goshatch/gosha.net,
and you're very welcome to email me with any questions: [email protected] -->

<meta charset="utf-8">
Expand Down
6 changes: 3 additions & 3 deletions _projects/astrovox.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The following features are planned for a first release:
### Download

ASTROVOX is currently in development, and no official release is available yet.
The source code is available [on Sourcehut](https://git.sr.ht/~gosha/astrovox).
The source code is available [on GitHub](https://github.com/goshatch/astrovox).

Bug reports and patches are very welcome, and can be submitted via my [public
inbox](https://lists.sr.ht/~gosha/public-inbox) on Sourcehut.
Bug reports and pull requests are very welcome, and can be submitted via the
GitHub repository.
4 changes: 2 additions & 2 deletions colophon.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>Colophon</h1>
<li>HTML generation: <a href="https://www.jekyllrb.com/">Jekyll 4.3</a>, with <a href="https://github.com/jekyll/jekyll-feed">jekyll-feed</a> and <a href="https://github.com/vwochnik/jekyll-autoprefixer">jekyll-autoprefixer</a></li>
<li>Code editing, task management, general purpose operating system: <a href="https://www.gnu.org/software/emacs/">Emacs</a></li>
<li>Version control: <a href="https://git-scm.com/">Git</a> via <a href="https://magit.vc">Magit</a></li>
<li>Builds and automatic deployment: <a href="https://builds.sr.ht">builds.sr.ht</a></li>
<li>Builds and automatic deployment: <a href="https://docs.github.com/en/actions">GitHub Actions</a></li>
<li>Hosting: <a href="https://openbsd.org" class="openbsd"><span class="open">Open</span><span class="bsd">BSD</span></a> 7.4/httpd at <a href="https://cloud.hetzner.com">Hetzner Cloud</a><br/></li>
</ul>
<p>The site uses icons from <a href="https://github.com/twitter/twemoji">Twemoji</a> by Twitter, via <a href="https://github.com/SebastianAigner/twemoji-amazing">twemoji-amazing</a>, and an RSS feed icon adapted from <a href="http://www.feedicons.com/">FeedIcons</a>.</p>
Expand All @@ -36,7 +36,7 @@ <h3>Accessibility</h3>
<h3>Build information</h3>
<p>
Last updated on {{ site.data.git.date | readableDate }}<br/>
<code><a href="https://git.sr.ht/~gosha/gosha.net/commit/{{ site.data.git.commitHash }}">{{ site.data.git.commitHash }}</a></code>
<code><a href="https://github.com/goshatch/gosha.net/commit/{{ site.data.git.commitHash }}">{{ site.data.git.commitHash }}</a></code>
&rarr; {{ site.data.git.subject }}
</p>
<p>
Expand Down

0 comments on commit 64327c9

Please sign in to comment.