Skip to content

Shorten the 'fetch-vars' jobs. (#84) #9

Shorten the 'fetch-vars' jobs. (#84)

Shorten the 'fetch-vars' jobs. (#84) #9

name: Deploy Website to EC2 staging

Check failure on line 1 in .github/workflows/website-deploy-staging.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/website-deploy-staging.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: fetch-vars
on:
push:
branches:
- main
jobs:
fetch-vars:
runs-on: ubuntu-latest
environment: staging
outputs:
service_name: ${{ vars.WEBSITE_SERVICE_NAME }}
service_path: ${{ vars.WEBSITE_SERVICE_PATH }}
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.service_name }}
service-path: ${{ needs.fetch-vars.outputs.service_path }}
environment: staging