Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create build_launchx_blog.yml #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/flujos de trabajo/build_launchx_blog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build Personal Blog
on: push

jobs:
build:

name: Build and update website
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup GoHugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.92.0'
- name: Commit Update
run: |
echo ":: Eliminando versión previa ::"
rm -rf docs
- name: Build drafts
run: hugo -D
- name: Commit Update
run: |
echo ":: Renombrando nueva version ::"
mv public/ docs/
git config --global user.email "launchx@innovaccion.mx"
git config --global user.name "Launch X Backend Node JS"
git add .
git commit -m "GitHub Actions: Build ok"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}