Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Merge pull request #13 from CodeReviewShop/add-issue-template-1 #61

Merge pull request #13 from CodeReviewShop/add-issue-template-1

Merge pull request #13 from CodeReviewShop/add-issue-template-1 #61

name: Deploy to Firebase Hosting on merge
"on":
push:
branches:
- main
jobs:
deploy:
env:
HUGO_VERSION: ${{ github.sha }}
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- name: Set git config core.quotepath false
run: git config --global core.quotepath false
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "20"
- name: Install theme
run: cd themes/hugo-theme-luna && yarn install --production
- name: Install postcss-cli
run: npm install postcss-cli -g
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.113.0"
extended: true
- name: Build Hugo Site
run: echo "HUGO_VERSION -> $HUGO_VERSION" && hugo --gc --minify --cleanDestinationDir
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CODEREVIEWBLOG }}"
channelId: live
projectId: codereviewblog