Skip to content

Commit

Permalink
πŸ‘· ビルドを衰らせる
Browse files Browse the repository at this point in the history
  • Loading branch information
wappon28dev committed Jun 19, 2024
1 parent a57ccb7 commit 6cdfd31
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,35 @@ on:

jobs:
build:
if: false
runs-on: ubuntu-latest

if: contains(github.event.head_commit.message, '[skip ci]') == false
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: πŸ“₯ Checkout repository
uses: actions/checkout@v3

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
- name: πŸ“Έ Calculate commit hash
id: sha
uses: pr-mpt/actions-commit-hash@v2

- name: πŸ”¨ Prepare Node environment
uses: actions/setup-node@v4
with:
hugo-version: "0.91.2"
extended: true
node-version: 22

- name: Build Hugo
run: hugo -D --gc
- name: πŸŽ‰ Install project dependencies
run: npm install

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- run: npm run build-css
- name: πŸ—οΈ Build app
run: npm run build
env:
PUBLIC_MICROCMS_SERVICE_DOMAIN: ${{ secrets.PUBLIC_MICROCMS_SERVICE_DOMAIN }}
PUBLIC_MICROCMS_API_KEY: ${{ secrets.PUBLIC_MICROCMS_API_KEY }}

- name: πŸ“‚ Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWARD }}
local-dir: ./public/
local-dir: ./dist
server-dir: /home/${{ secrets.FTP_USERNAME }}/www/misc-mdn/

0 comments on commit 6cdfd31

Please sign in to comment.