Skip to content

Commit

Permalink
WebApp - Agrego condiciones de ejecución del pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Di Gulio committed Dec 26, 2023
1 parent 0e446a8 commit 4220f8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/webApp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on:
- .github/workflows/webApp.yml

jobs:
build:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@master

- name: Install dependencies
run: |
Expand All @@ -25,20 +24,12 @@ jobs:
cd webapp
yarn build
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Create release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Build de la aplicación React
- name: Upload assets
uses: actions/upload-artifact@v2
- uses: jakejarvis/s3-sync-action@master
with:
name: webapp
path: ./webapp/dist
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-1'
SOURCE_DIR: 'webapp/build'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
webapp/node_modules
webapp/build

0 comments on commit 4220f8d

Please sign in to comment.