This action is intended to share a common set of steps we use to compile and upload code for the monolith.
- Checkout the monolith code
- Restore NuGet packages
- Build
- Precompile websites
- Checkout AwsDeploy code
- Combine monolith and aws deploy code
- Upload
The GitHub property 'github.ref' that helps determine the branch name.
The GitHub property 'github.sha' that provides a unique id.
Access token for GitHub AwsDeploy repository.
S3 Bucket name
Overwrite existing file. Optional (default true)
Specific app such as care, eapi, signup or default
Access key for Aws upload.
Secret key for Aws upload.
Aws region used. Default is 'us-east-1'.
Zip filename resulting from compile
compile-upload:
name: Compile and Upload
runs-on: psidev-windows
steps:
- name: "Monolith/AWS Compile and Upload"
uses: patriotsoftware/monolith-compile-upload-action@v1
with:
github_ref_name: ${{ github.ref_name }}
github_sha: ${{ github.sha }}
s3_bucket: monolithdev-codedeploy
s3_folder: suite
custom_access_token: ${{ secrets.CUSTOM_GITHUB_ACCESS_TOKEN }}
aws_access_key: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}