Skip to content

Updating ruby version #343

Updating ruby version

Updating ruby version #343

name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- main
repository_dispatch:
types: [build]
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: |
npm install -g staticrypt
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.1
- name: Update Bundler
run: gem install bundler
- name: Install Dependencies
run: bundle install --jobs=4
- name: Getting the internal webpage component
uses: actions/checkout@v2
with:
repository: aria-systems-group/website-internal-page
path: ./aria-internal-site
token: ${{ secrets.GHACTION_TOKEN }}
- run: bundle lock
- name: Building the website
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true
- name: Encrypting the internal webpage
run: |
ls ./_site
staticrypt ./_site/internal.html -p ${{ secrets.INTERNAL_PAGE_PW }} --short
mv ./encrypted/internal.html ./_site/internal.html
- name: 🚀 Deploying the website
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GHACTION_TOKEN }}
publish_dir: ./_site
cname: ariasystems.group