Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenophong committed Mar 26, 2024
1 parent f09be90 commit 11292ee
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,27 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7 # Adjust the version to match your project's Ruby version

- name: Install Bundler
run: gem install bundler

- 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
# 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
# Run any build commands if necessary
bundle install
bundle exec jekyll build
# npm & Hugo extension :
npm install
npm run build
hugo --minify
# npm & Hugo extension :
npm install
npm run build
hugo --minify

0 comments on commit 11292ee

Please sign in to comment.