This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
Update README.md #2
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: Deploy | |
# This workflow is triggered on pushes & pull requests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18.3' | |
- run: go version | |
- run: make deploy-gh | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- uses: chrnorm/deployment-action@v2 | |
name: Create GitHub deployment | |
id: deployment | |
with: | |
token: '${{ github.token }}' | |
environment-url: https://toolbox.fastenhealth.com/ | |
environment: prod | |
initial-status: success | |
# more steps below where you run your deployment scripts inside the same action | |