Azure / Azure/static-web-apps

GitHub actions deployment fails for .NET 10

Open
#1,692 19 comments 19 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

`Azure/static-web-apps-deploy` GitHub action fails for .NET 10 repos:

```
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and deploy
steps:
- uses: actions/checkout@v3
with:
submodules: true
lfs: false
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@latest
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_XXX }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: "upload"
app_location: "./AdminTool"
output_location: "wwwroot"
```

gives:

```
Run Azure/static-web-apps-deploy@v1
/usr/bin/docker run --name af26ba20007456c824dabd295a8e38d_665344 --label 713911 --workdir /github/workspace --rm -e "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN" -e "INPUT_REPO_TOKEN" -e "INPUT_ACTION" -e "INPUT_APP_LOCATION" -e "INPUT_OUTPUT_LOCATION" -e "INPUT_API_BUILD_COMMAND" -e "INPUT_API_LOCATION" -e "INPUT_APP_ARTIFACT_LOCATION" -e "INPUT_APP_BUILD_COMMAND" -e "INPUT_ROUTES_LOCATION" -e "INPUT_SKIP_APP_BUILD" -e "INPUT_CONFIG_FILE_LOCATION" -e "INPUT_SKIP_API_BUILD" -e "INPUT_PRODUCTION_BRANCH" -e "INPUT_DEPLOYMENT_ENVIRONMENT" -e "INPUT_IS_STATIC_EXPORT" -e "INPUT_DATA_API_LOCATION" -e "INPUT_GITHUB_ID_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/codelibra/codelibra":"/github/workspace" 713911:1af26ba20007456c824dabd295a8e38d
DeploymentId: d6dd9166-6280-4103-bc24-7aa9bae15365

Try to validate location at: '/github/workspace/./AdminTool'.
App Directory Location: './AdminTool' was found.
Try to validate location at: '/github/workspace/swa-db-connections'.
Looking for event info
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---

Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version: 0.2.20250107.1+ef3fb2f9c490a4fbb1f76b5746cd4ba2ff0409f4, Commit: ef3fb2f9c490a4fbb1f76b5746cd4ba2ff0409f4, ReleaseTagName: 20250107.1

Build Operation ID: 0eca633845dcde49
OS Type : bullseye
Image Type : githubactions

Detecting platforms...
Error: Platform 'dotnet' version '10.0' is unsupported. Supported versions: 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.15, 3.1.17, 3.1.18, 3.1.21, 3.1.23, 3.1.25, 3.1.26, 3.1.28, 3.1.29, 3.1.31, 3.1.32, 6.0.0-preview.1.21102.12, 6.0.0-preview.2.21154.6, 6.0.0-preview.3.21201.4, 6.0.0-preview.4.21253.7, 6.0.0-preview.5.21301.5, 6.0.0-preview.6.21352.12, 6.0.0-preview.7.21377.19, 6.0.0-rc.1.21451.13, 6.0.0-rc.2.21480.5, 6.0.0, 6.0.3, 6.0.5, 6.0.6, 6.0.8, 6.0.9, 6.0.11, 6.0.12, 6.0.13, 6.0.14, 6.0.15, 6.0.16, 6.0.18, 6.0.19, 6.0.20, 6.0.21, 6.0.23, 6.0.24, 6.0.25, 6.0.29, 6.0.31, 6.0.32, 6.0.33, 6.0.35, 7.0.0-preview.1.22076.8, 7.0.0-preview.5.22301.12, 7.0.0-preview.6.22324.4, 7.0.0-preview.7.22375.6, 7.0.0-rc.1.22426.10, 7.0.0-rc.2.22472.3, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.7, 7.0.8, 7.0.9, 7.0.10, 7.0.12, 7.0.13, 7.0.14, 7.0.20, 8.0.0-preview.1.23110.8, 8.0.0-preview.2.23128.3, 8.0.0-preview.3.23174.8, 8.0.0-preview.4.23259.5, 8.0.0-preview.5.23280.8, 8.0.0-preview.7.23375.6, 8.0.0-rc.1.23419.4, 8.0.0-rc.2.23479.6, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.6, 8.0.7, 8.0.8, 8.0.10, 8.0.12, 8.0.14, 8.0.15, 8.0.18, 9.0.0-preview.6.24327.7, 9.0.0-rc.2.24473.5, 9.0.0, 9.0.1, 9.0.3, 9.0.4, 9.0.7, 1.0.16

---End of Oryx build logs---
Oryx has found build steps, but identified unsupported platform versions. Failing build.

For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
```

I noticed this after upgrading to .NET 10-rc1. Non-static webapp deployments work fine. I tried `@latest` and `@v1` for the action repo.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.