Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Add GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
yousinix committed Oct 23, 2019
1 parent 8f95788 commit c7d7035
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Deploy

on:
push:
branches:
- master

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Install bundler
run: gem install bundler
- name: Install gems
run: bundle install
- name: Build Jekyll
run: bundle exec jekyll build
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: _site
path: _site

deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: _site
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:admin
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 comments on commit c7d7035

Please sign in to comment.