Create tip11.md #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate RSS Feed | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Esto obtiene todo el historial de commits | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.0 # Especifica la versión de Ruby que deseas utilizar | |
- name: Install dependencies | |
run: | | |
gem install jekyll bundler | |
bundle install | |
- name: Debug _site content | |
run: | | |
ls -R ./docs/Tips | |
- name: Build and deploy | |
run: | | |
bundle exec jekyll build | |
cp -r ./docs/Tips/* $GITHUB_WORKSPACE | |
env: | |
GITHUB_WORKSPACE: ${{ github.workspace }} | |
- name: Debug copied files | |
run: | | |
ls -R $GITHUB_WORKSPACE | |
- name: Show commit message | |
run: | | |
echo "Commit message: $(git log -1 --pretty=%B)" | |