Merge pull request #7 from rrigato/dev #8
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
name: Updates web application | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-commit-artifact: | |
runs-on: ubuntu-latest | |
name: favicon to s3 bucket | |
env: | |
ORCHESTRATION_SCRIPT: './.github/scripts/orchestrate_artifacts.sh' | |
steps: | |
- name: checkout-current-branch | |
uses: actions/checkout@v3 | |
- name: script-execution-permissions | |
run: chmod +x ${{env.ORCHESTRATION_SCRIPT}} | |
- name: upload-favicon-artifacts | |
shell: bash | |
env: | |
AWS_ACCESS_KEY_ID: ${{secrets.PERSISTANT_STORAGE_ID}} | |
AWS_DEFAULT_OUTPUT: json | |
AWS_DEFAULT_REGION: 'us-east-1' | |
AWS_S3_BUCKET_NAME: 'ryanrigato.com' | |
AWS_SECRET_ACCESS_KEY: ${{secrets.PERSISTANT_STORAGE_KEY}} | |
run: ${{env.ORCHESTRATION_SCRIPT}} | |
deploy-website-source-files: | |
runs-on: ubuntu-latest | |
name: web source files to s3 | |
defaults: | |
run: | |
working-directory: ./static | |
steps: | |
- name: checkout-current-branch | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- run: npm run test | |
- run: npm run build | |