chore(config): migrate renovate config (#30) #32
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4.1.1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
deploy: | |
name: Deploy application | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Deploy | |
run: echo "::warning file=.github/workflows/deploy.yaml,line=36,endLine=37,title=No Deploy step defined::Define your custom workflow for deploying your subgraph here." | |
publish_schema: | |
name: Publish new schema to Apollo Studio | |
if: false | |
needs: [deploy] | |
env: | |
APOLLO_VCS_COMMIT: ${{ github.event.pull_request.head.sha }} | |
# rename this to a valid subgraph name | |
SUBGRAPH_NAME: foo-bar | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4.1.1 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install Rover | |
run: | | |
curl -sSL https://rover.apollo.dev/nix/latest | sh | |
echo "$HOME/.rover/bin" >> $GITHUB_PATH | |
- name: Generate Schema | |
run: dotnet run --project Server -- schema export --output ../schema.graphql | |
- name: Publish Schema | |
run: rover subgraph publish ${{ secrets.APOLLO_GRAPH_REF }} --schema src/main/resources/graphql/schema.graphqls --name ${{ env.SUBGRAPH_NAME }} --routing-url ${{ secrets.PRODUCTION_URL }} | |
env: | |
APOLLO_KEY: ${{ secrets.APOLLO_KEY }} |