-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: sudhanshu dasgupta <[email protected]>
- Loading branch information
1 parent
b25d9d3
commit 0414f0f
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build and Preview Site | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
types: [opened, synchronize, reopened] | ||
|
||
|
||
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: | | ||
npm install | ||
npm run noIndex | ||
- name: Zip Site | ||
run: bash ./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" |
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