-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
52 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters