Skip to content

Commit

Permalink
ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
tauisilva committed Mar 20, 2024
1 parent fa4181d commit 84fa163
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Pages
name: Angular Build and Deploy

on:
push:
Expand All @@ -10,36 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: 20

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci

- name: Build Angular app to prod
run: npm run build:prod
working-directory: github-option-three-app
run: npm install && npm run build:prod

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.TOKEN_GIT}}
folder: dist/browser
branch: gh-pages
branch: prod
Binary file removed src/assets/AraujoMicro.png
Binary file not shown.

0 comments on commit 84fa163

Please sign in to comment.