Update EchoPro project update (echopop
)
#381
Workflow file for this run
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: CI_PR | |
on: | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Update theme | |
# (Optional)If you have the theme added as submodule, you can pull it and use the most updated version | |
run: git submodule update --init --recursive | |
- name: Setup hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "0.83.1" | |
extended: true | |
- name: Build | |
# remove --minify tag if you do not need it | |
# docs: https://gohugo.io/hugo-pipes/minification/ | |
run: hugo --minify | |
- name: Deploy Website Preview | |
uses: nwtgck/actions-netlify@v1.1 | |
with: | |
publish-dir: './public' | |
production-deploy: false | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: "Deploy from GitHub Actions" | |
enable-commit-comment: false | |
enable-pull-request-comment: true | |
overwrites-pull-request-comment: true | |
alias: deploy-preview-${{ github.event.number }} | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
timeout-minutes: 1 |