Skip to content

Try different approach for output. (#83) #8

Try different approach for output. (#83)

Try different approach for output. (#83) #8

name: Deploy Website to EC2 staging
on:
push:
branches:
- main
jobs:
fetch-vars:
runs-on: ubuntu-latest
environment: staging
outputs:
website_service_name: ${{ steps.set-vars.outputs.website_service_name }}
website_service_path: ${{ steps.set-vars.outputs.website_service_path }}
steps:
- name: Set Environment Variables
id: set-vars
run: |
echo "website_service_name=${{ vars.WEBSITE_SERVICE_NAME }}" >> $GITHUB_OUTPUT
echo "website_service_path=${{ vars.WEBSITE_SERVICE_PATH }}" >> $GITHUB_OUTPUT
deploy:
needs: fetch-vars
uses: ./.github/workflows/deploy-dotnet-service-ec2.yml
secrets: inherit
with:
project-name: Website
dotnet-version: '8.0.x'
service-name: ${{ needs.fetch-vars.outputs.website_service_name }}
service-path: ${{ needs.fetch-vars.outputs.website_service_path }}