Allow reading ids containing integers as strings (#4076) #1
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: Build artifacts | |
# ==== NOTE: do not rename this yml file or the run_number will be reset ==== | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
paths: | |
- src/** | |
- .github/workflows/** | |
env: | |
NODE_VERSION: '18.x' # Node 18 LTS, see https://nodejs.org/en/about/releases/ | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
jobs: | |
pack: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: yarn docs2 | |
working-directory: docs2 | |
run: yarn | |
- name: yarn gatsby build | |
working-directory: docs2 | |
run: yarn gatsby build | |
- name: Publish docs artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Documentation | |
path: docs2/public/** | |
if-no-files-found: error | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Install dependencies | |
working-directory: src | |
run: dotnet restore | |
- name: Build solution [Release] | |
working-directory: src | |
run: dotnet build --no-restore -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER | |
- name: Pack solution [Release] | |
working-directory: src | |
run: dotnet pack --no-restore --no-build -c Release -p:VersionSuffix=$GITHUB_RUN_NUMBER -o out | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Nuget packages | |
path: | | |
src/out/* | |
- name: Publish Nuget packages to GitHub registry | |
working-directory: src | |
run: dotnet nuget push "out/*" -k ${{secrets.GITHUB_TOKEN}} |