Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net Core 8.0 github actions deploy #2060

Closed
carlosdevelops opened this issue May 17, 2024 · 1 comment
Closed

Net Core 8.0 github actions deploy #2060

carlosdevelops opened this issue May 17, 2024 · 1 comment
Labels

Comments

@carlosdevelops
Copy link

Hey guys I am having issues deploying through github when I deploy with tarball it works fine but when I setup this file it always fails at this line below any help is appreciated

Run dotnet build --configuration Release --no-restore

/home/runner/.dotnet/sdk/8.0.300/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(266,5): error MSB4018: The "ResolvePackageAssets" task failed unexpectedly.

name: Build & Deploy

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        dotnet-version: [ '8.0' ]  

    steps:
      - name: Check out repository
        uses: actions/checkout@v2

      - name: Setup .NET
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: ${{ matrix.dotnet-version }}

      - name: Build the application
        run: dotnet build --configuration Release --no-restore

      - name: Publish the application
        run: dotnet publish -c Release -o ./publish

      - name: Archive files
        uses: actions/upload-artifact@v2
        with:
          name: app
          path: ./publish

      - name: Deploy App to CapRover
        uses: caprover/deploy-from-github@v1.0.1
        with:
          server: '${{ secrets.CAPROVER_SERVER }}'  # Your CapRover server URL
          app: '${{ secrets.APP_NAME }}'  # Your CapRover app name
          token: '${{ secrets.APP_TOKEN }}'  # Your CapRover app token
          source: app

@carlosdevelops carlosdevelops changed the title Net core 8 github deploy Net Core 8.0 github actions deploy May 17, 2024
@githubsaturn
Copy link
Collaborator

Hi @carlosdevelops - the line you mentioned is unrelated to CapRover. Looks like your build fails before it reaches caprover/deploy-from-github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants