Merge pull request #38 from morotsgurka/dependabot/npm_and_yarn/tailw… #32
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
name: Build and Deploy Jekyll | |
on: | |
push: | |
branches: | |
- main # Change this to your main branch name | |
paths-ignore: | |
- 'README.md' | |
- '.gitignore' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: .ruby-version # uses the Ruby version specified in the .ruby-version file | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc # uses the Node.js version specified in the .nvmrc file | |
cache: 'npm' # enables caching of npm dependencies | |
- run: npm ci | |
- name: Build site for production | |
run: npm run build:production | |
- name: GitHub Pages | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
build_dir: _site/ | |
fqdn: www.mardestam.com # Change this to your domain name | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |