Skip to content

Commit

Permalink
ci: try AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron de las Alas committed Sep 29, 2023
1 parent 9c9d2f0 commit 3f285db
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@ jobs:
environment: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
steps:
- uses: actions/checkout@v4
- run: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
# - name: Use Node 17x
# uses: actions/setup-node@v3
# with:
# node-version: '17.x'
# - name: Install dependencies
# run: npm install --legacy-peer-deps
# - name: Lint Site Code
# run: npm run test
# - name: Build Site
# run: npm run build
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# role-to-assume: ${{ secrets.AWS_OIDC_ROLE }}
# role-session-name: GitHub-Action-Role
# aws-region: ${{ vars.AWS_REGION }}
- name: Use Node 17x
uses: actions/setup-node@v3
with:
node-version: '17.x'
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Lint Site Code
run: npm run test
- name: Build Site
run: npm run build
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_OIDC_ROLE }}
role-session-name: GitHub-Action-Role
aws-region: ${{ vars.AWS_REGION }}
# # - name: Send Notification
# # uses: voxmedia/github-action-slack-notify-build@v1
# # with:
Expand Down

0 comments on commit 3f285db

Please sign in to comment.