Delete build-site.yml
This commit is contained in:
parent
693df8e0d6
commit
3c91a05bd9
1 changed files with 0 additions and 65 deletions
65
.github/workflows/build-site.yml
vendored
65
.github/workflows/build-site.yml
vendored
|
@ -1,65 +0,0 @@
|
||||||
name: Build and Deploy Site
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
workflow_dispatch:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: true
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
HUGO_VERSION: 0.108.0
|
|
||||||
NODE_VERSION: 18.12.1
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup pages
|
|
||||||
id: pages
|
|
||||||
uses: actions/configure-pages@v2
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: "${{ env.NODE_VERSION }}"
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: "${{ env.HUGO_VERSION }}"
|
|
||||||
extended: true
|
|
||||||
- name: Configure npm
|
|
||||||
run: |
|
|
||||||
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
|
|
||||||
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_TOKEN }}
|
|
||||||
- name: Install postcss
|
|
||||||
run: |
|
|
||||||
npm -g install postcss-cli
|
|
||||||
- name: Install npm packages
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
- name: Run Hugo
|
|
||||||
run: |
|
|
||||||
hugo --environment production --minify
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-pages-artifact@v1
|
|
||||||
with:
|
|
||||||
path: ./public
|
|
||||||
- name: Deploy to gh-pages
|
|
||||||
if: ${{ !env.ACT && github.ref == 'refs/heads/master' }}
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
||||||
publish_dir: ./public
|
|
||||||
cname: millironx.com
|
|
Loading…
Reference in a new issue