|
|
|
@ -15,8 +15,6 @@ jobs:
|
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
|
with:
|
|
|
|
|
node-version: lts/*
|
|
|
|
|
cache: npm
|
|
|
|
|
cache-dependency-path: assets/package-lock.json
|
|
|
|
|
- name: Setup Hugo
|
|
|
|
|
uses: peaceiris/actions-hugo@v2
|
|
|
|
|
with:
|
|
|
|
@ -26,19 +24,17 @@ jobs:
|
|
|
|
|
run: |
|
|
|
|
|
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
|
|
|
|
|
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_TOKEN }}
|
|
|
|
|
- name: Install global npm packages
|
|
|
|
|
- name: Install postcss
|
|
|
|
|
run: |
|
|
|
|
|
npm install postcss@^8.4.6 postcss-cli@^9.1.0 @fullhuman/postcss-purgecss@^2.0.3
|
|
|
|
|
npm -g install postcss@^8.4.6 postcss-cli@^9.1.0 @fullhuman/postcss-purgecss@^2.0.3
|
|
|
|
|
- name: Install local npm packages
|
|
|
|
|
npm -g install postcss-cli
|
|
|
|
|
- name: Install npm packages
|
|
|
|
|
run: |
|
|
|
|
|
cd assets
|
|
|
|
|
npm install
|
|
|
|
|
cd ..
|
|
|
|
|
- name: Run Hugo
|
|
|
|
|
run: |
|
|
|
|
|
hugo
|
|
|
|
|
- name: Deploy to gh-pages
|
|
|
|
|
if: ${{ !env.ACT }}
|
|
|
|
|
uses: rdarida/simple-github-pages-deploy-action@v1
|
|
|
|
|
with:
|
|
|
|
|
git-user: "MillironX"
|
|
|
|
|