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

Migrate Travis CI to GitHub Actions #867

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0

- name: Install dependencies
run: sudo apt-get install python-pygments

- name: Setup Hugo
uses: actions/setup-node@v2
with:
node-version: '12'

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.76.5'

- name: Clean public directory
run: rm -rf ./src/public

- name: Make assets
run: cd src/themes/hugo-theme-learn/_src && npm install && npm run build && cd ../../../

- name: Build
run: ../hugo

- name: Create a CNAME file which mapping to our custom domain
run: echo 'devdocs.prestashop.com' > public/CNAME

- name: Return to root directory
run: cd ..

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src/public
Progi1984 marked this conversation as resolved.
Show resolved Hide resolved
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.