Skip to content

Commit

Permalink
deployment_faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenophong committed Mar 24, 2024
1 parent 334eb34 commit d5f4e79
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
31 changes: 31 additions & 0 deletions workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Website

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Build and deploy
run: |
# Fetch latest changes from the main branch
git fetch origin main
# Reset the local main branch to match the fetched changes
git reset --hard origin/main
# Run any build commands if necessary
bundle install
bundle exec jekyll build
# npm & Hugo extension :
npm install
npm run build
hugo --minify

0 comments on commit d5f4e79

Please sign in to comment.