Skip to content

Commit 83fb900

Browse files
Updated deploy workflow (#2)
1 parent 64e5b21 commit 83fb900

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
jobs:
8+
build:
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
16+
run: |
17+
npm install
18+
npm run build:prod
19+
20+
- name: Deploy 🚀
21+
uses: JamesIves/github-pages-deploy-action@releases/v3
22+
with:
23+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
24+
BRANCH: gh-pages # The branch the action should deploy to.
25+
FOLDER: dist/angular-component-library # The folder the action should deploy.

.github/workflows/main.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)