[pull] master from layer5io:master #102
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: Build and Preview Site | |
on: | |
pull_request: | |
branches: [ master ] | |
types: [opened, synchronize, reopened] | |
paths: | |
- '!**' | |
- 'site/**' | |
jobs: | |
site-preview: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@master | |
with: | |
persist-credentials: false | |
fetch-depth: 1 | |
- name: Install and Build 🔧 | |
run: | | |
cd site | |
npm install | |
npm run build | |
- name: Zip Site | |
run: bash site/script.sh | |
- name: Upload files | |
uses: actions/upload-artifact@master | |
with: | |
name: public-dir | |
path: ./public-dir.zip | |
retention-days: 1 | |
- name: Triger Inner workflow | |
run: echo "trigering inner workflow" |