mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-04-06 09:21:47 +08:00
23 lines
512 B
YAML
23 lines
512 B
YAML
name: example - angular
|
|
on:
|
|
push:
|
|
# branches:
|
|
# - master
|
|
|
|
jobs:
|
|
static:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: build
|
|
run: |
|
|
cd example/angular
|
|
npm install
|
|
npx ng build --prod
|
|
- uses: amondnet/now-deployment@v1
|
|
id: now-deployment
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
zeit-token: ${{ secrets.ZEIT_TOKEN }}
|
|
now-args: '--prod example/angular/dist/angular'
|