Skip to content

Commit

Permalink
docs(pages): Setup GitHub Pages (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Jan 8, 2023
1 parent 80c8546 commit 92de4c9
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---

name: Pages

on:
push:
branches: [release]


permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: yarn

- name: Install Dependencies
run: yarn install --immutable

- name: Build Docs
run: yarn docs

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/deploy-pages@v1

...
53 changes: 53 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---

remote_theme: mmistakes/minimal-mistakes

plugins:
- jekyll-include-cache
- jekyll-github-metadata

defaults:
- scope:
path: ""
type: pages
values:
author_profile: true
classes: wide
layout: single

minimal_mistakes_skin: air
title: TS CSSVars
subtitle: Safely define and use CSS vars on JS/TS context
name: Jose Luis Leon
repository: JoseLion/ts-cssvars
atom_feed:
hide: true
twitter:
username: joseliont
author:
name: Jose Luis Leon
avatar: https://github.com/JoseLion.png
email: joseluis5000l@gmail.com
links:
- label: Repository
icon: fab fa-fw fa-github
url: https://github.com/JoseLion/ts-cssvars
- label: GitHub
icon: fab fa-fw fa-github-alt
url: https://github.com/JoseLion
- label: Twitter
icon: fab fa-fw fa-twitter-square
url: https://twitter.com/joseliont
footer:
links:
- label: Repository
icon: fab fa-fw fa-github
url: https://github.com/JoseLion/ts-cssvars
- label: GitHub
icon: fab fa-fw fa-github-alt
url: https://github.com/JoseLion
- label: Twitter
icon: fab fa-fw fa-twitter-square
url: https://twitter.com/joseliont

...

0 comments on commit 92de4c9

Please sign in to comment.