-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from riboseinc/8-migrate-site-to-github-pages
Migrate site to Github Pages
- Loading branch information
Showing
8 changed files
with
155 additions
and
25 deletions.
There are no files selected for viewing
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,2 @@ | ||
--- | ||
BUNDLE_BUILD__NOKOGIRI: "--use-system-libraries" |
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,90 @@ | ||
name: build_deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
# - staging | ||
pull_request: | ||
repository_dispatch: | ||
workflow_dispatch: | ||
|
||
# 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: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# set_environment: | ||
# outputs: | ||
# my_env: ${{ steps.setenv.outputs.my_env }} | ||
# my_url: ${{ steps.setenv.outputs.my_url }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - id: setenv | ||
# run: | | ||
# if [ "$GITHUB_REF" = "refs/heads/main" ] | ||
# then | ||
# echo "::set-output name=my_env::production" | ||
# echo "::set-output name=my_url::https://www.tebako.org" | ||
# elif [ "$GITHUB_REF" = "refs/heads/staging" ] | ||
# then | ||
# echo "::set-output name=my_env::staging" | ||
# echo "::set-output name=my_url::https://staging-www.tebako.org" | ||
# fi | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
# needs: [set_environment] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install libraries | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get install -y libxslt-dev libxml2-dev | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' | ||
|
||
- name: Run bundle | ||
run: | | ||
gem install nokogiri -- --use-system-libraries | ||
bundle install | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Build with Jekyll | ||
# Outputs to the './_site' directory by default | ||
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | ||
env: | ||
JEKYLL_ENV: production | ||
|
||
- name: Upload artifact | ||
# Automatically uploads an artifact from the './_site' directory by default | ||
uses: actions/upload-pages-artifact@v2 | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
<svg width="123" height="26" viewBox="0 0 123 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<g class="Canvas" fill="none"> | ||
<g class="Group"> | ||
<g class="Shape"> | ||
<path d="M 3.23556 13.0489L 0 13.0489L 0 0.48L 3.23556 0.0177778L 3.23556 2.08C 4.03556 0.728889 5.04889 0 6.52444 0C 7.28889 0 8.08889 0.16 8.78222 0.568889L 8.07111 3.48444C 7.46667 3.14667 6.86222 2.98667 6.25778 2.98667C 5.13778 2.98667 4.08889 3.69778 3.23556 5.24444L 3.23556 13.0489Z" transform="translate(0.919998 5.98222)" fill="white"/> | ||
</g> | ||
<g class="Shape_2"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 0 1.95555C 0 3.14667 0.711105 3.91111 1.97333 3.91111C 3.27112 3.91111 3.98222 3.14667 3.98222 1.95555C 3.98222 0.799999 3.27112 0 1.97333 0C 0.711105 0 0 0.799999 0 1.95555ZM 0.35556 6.31111L 0.35556 18.88L 3.59111 18.88L 3.59111 5.84889L 0.35556 6.31111Z" transform="translate(11.3022 0.151112)" fill="white"/> | ||
</g> | ||
<g class="Shape_3"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 3.09334 18.7378C 3.91112 19.0222 5.10222 19.1822 5.92 19.1822C 9.52888 19.1822 12.32 16.3733 12.32 12.32C 12.32 8.42667 10.1156 5.70667 6.77333 5.70667C 5.24445 5.70667 4.08888 6.50667 3.23555 7.32444L 3.23555 0L 0 0.444443L 0 19.2L 3.09334 18.7378ZM 3.23555 9.49334C 3.94666 8.85334 4.78221 8.44445 5.84888 8.44445C 7.84 8.44445 9.03111 10.0089 9.01332 12.48C 9.01332 14.8444 7.78667 16.6044 5.61777 16.6044C 4.65778 16.6044 3.84 16.3556 3.23555 15.8933L 3.23555 9.49334Z" transform="translate(17.8089 0.240002)" fill="white"/> | ||
</g> | ||
<g class="Shape_4"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 0 6.77333C 0 10.9689 2.70222 13.4933 6.39999 13.4933C 10.1156 13.4933 12.96 10.88 12.96 6.75555C 12.96 2.57778 10.2933 0 6.56 0C 2.82666 0 0 2.59555 0 6.77333ZM 3.18222 6.73778C 3.18222 4.30222 4.33777 2.59555 6.45334 2.59555C 8.55112 2.59555 9.74222 4.33778 9.74222 6.77333C 9.74222 9.20889 8.58667 10.8622 6.50667 10.8622C 4.39111 10.8622 3.18222 9.15556 3.18222 6.73778Z" transform="translate(32.0133 5.94667)" fill="white"/> | ||
</g> | ||
<g class="Shape_5"> | ||
<path d="M 4.90667 13.5111C 3.25333 13.5111 1.26222 13.0489 0 12.3378L 0.711111 9.81333C 1.97333 10.5244 3.59111 10.9867 4.99556 10.9867C 6.25778 10.9867 7.07556 10.4711 7.07556 9.58222C 7.07556 8.58667 6.00889 8.23111 4.51556 7.87556C 2.13333 7.32444 0.231111 6.34667 0.231111 3.94667C 0.231111 1.54667 2.24 0 5.28 0C 6.84444 0 8.71111 0.408889 9.88444 1.01333L 9.17333 3.53778C 7.94667 2.89778 6.31111 2.48889 5.19111 2.48889C 4.01778 2.48889 3.28889 2.93333 3.28889 3.75111C 3.28889 4.71111 4.35556 5.04889 5.84889 5.40444C 8.26667 5.97333 10.1511 6.91556 10.1511 9.38667C 10.1867 11.7511 8.14222 13.5111 4.90667 13.5111Z" transform="translate(46.7155 5.96444)" fill="white"/> | ||
</g> | ||
<g class="Shape_6"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 6.98666 10.8978C 4.72888 10.8978 3.34222 9.49333 3.2 7.43111L 3.2 7.36C 3.2 7.36 11.4489 7.25333 11.4844 7.25333C 11.6444 6.70222 11.7511 5.83111 11.7511 5.13778C 11.7511 2.02667 9.88445 0 6.54222 0C 2.73778 0 0 2.73778 0 6.86222C 0 10.8978 2.68445 13.4756 6.75555 13.4756C 8.46222 13.4756 10.1333 13.0844 11.3422 12.4267L 10.9333 9.74222C 9.79556 10.4533 8.33778 10.8978 6.98666 10.8978ZM 8.7289 5.22667L 8.7289 5.44L 3.28889 5.47556C 3.4489 3.91111 4.53334 2.45333 6.31111 2.45333C 7.98222 2.45333 8.7289 3.52 8.7289 5.22667Z" transform="translate(58.7689 5.96444)" fill="white"/> | ||
</g> | ||
<g class="Shape_7"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 0 6.66667C 0 10.7022 2.57779 13.28 6.06223 13.28C 9.54666 13.28 12.2311 10.6133 12.2489 6.61333C 12.2489 2.57778 9.72446 0 6.20444 0C 2.68445 0 0 2.66667 0 6.66667ZM 1.6889 6.61333C 1.6889 3.64444 3.44891 1.52889 6.11557 1.52889C 8.78223 1.52889 10.56 3.59111 10.56 6.66667C 10.56 9.63556 8.80002 11.7511 6.13336 11.7511C 3.46667 11.7511 1.6889 9.68889 1.6889 6.61333Z" transform="translate(72.6533 6.10667)" fill="white"/> | ||
</g> | ||
<g class="Shape_8"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 10.9867 6.63111C 10.9867 2.80889 8.74667 0.124443 5.3511 0.124443C 3.80444 0.124443 2.54224 0.871113 1.70667 1.67111L 1.70667 0L 0 0.355556L 0 19.3778L 1.70667 19.3778L 1.70667 12.6756C 2.52444 13.0667 3.78665 13.3333 4.78223 13.3333C 8.40887 13.3333 10.9867 10.5244 10.9867 6.63111ZM 4.87112 11.8044C 3.66223 11.8044 2.4711 11.4133 1.70667 10.8089C 1.70667 10.8089 1.70667 3.00444 1.72446 3.11111C 2.6311 2.27555 3.80444 1.70667 5.10223 1.70667C 7.64444 1.70667 9.24445 3.75111 9.24445 6.66666C 9.24445 9.63556 7.55554 11.8044 4.87112 11.8044Z" transform="translate(87.2667 6.05333)" fill="white"/> | ||
</g> | ||
<g class="Shape_9"> | ||
<path fill-rule="evenodd" clip-rule="evenodd" d="M 6.11557 11.7156C 3.48444 11.7156 1.77777 9.68889 1.72446 6.86222L 1.74222 6.86222L 1.74222 6.70222L 10.2578 6.64889C 10.4178 6.09778 10.5244 5.29778 10.5244 4.64C 10.5244 1.81333 8.71112 0 5.93777 0C 2.52444 0 0 2.80889 0 6.75555C 0 10.5778 2.43555 13.2978 6.06223 13.2978C 7.62668 13.2978 9.0311 12.8889 10.0978 12.2311L 9.76001 10.6667C 8.79999 11.3067 7.48444 11.7156 6.11557 11.7156ZM 8.85333 4.8C 8.85333 4.94222 8.85333 5.20889 8.81778 5.35111L 1.84888 5.38667C 2.13333 3.28889 3.57333 1.56445 5.83109 1.56445C 7.80444 1.56445 8.85333 2.88 8.85333 4.8Z" transform="translate(100.102 6.07111)" fill="white"/> | ||
</g> | ||
<g class="Shape_10"> | ||
<path d="M 8.30222 12.9244L 8.30222 4.8C 8.30222 2.59556 7.43111 1.61778 5.52889 1.61778C 4.16 1.61778 2.75556 2.36444 1.70667 3.39556L 1.70667 12.9244L 0 12.9244L 0 0.355556L 1.70667 0L 1.70667 2.06222C 3.02222 0.746667 4.67556 0 5.99111 0C 8.51556 0 9.99111 1.56444 9.99111 4.30222L 9.99111 12.9244L 8.30222 12.9244Z" transform="translate(112.991 6.10667)" fill="white"/> | ||
</g> | ||
</g> | ||
</g> | ||
</svg> | ||
|