From 3c0235ef6226a81d972461d99f8ea506b3890a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Gabriel?= <35270174+monambike@users.noreply.github.com> Date: Sun, 18 Feb 2024 22:58:10 -0300 Subject: [PATCH 1/4] Update push-hostinger.yml --- .github/workflows/push-hostinger.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-hostinger.yml b/.github/workflows/push-hostinger.yml index 9d748a7..c852d5b 100644 --- a/.github/workflows/push-hostinger.yml +++ b/.github/workflows/push-hostinger.yml @@ -8,7 +8,11 @@ on: jobs: build: runs-on: ubuntu-latest - + + env: + GIT_USERNAME: ${{ secrets.GIT_USERNAME }} + GIT_PACKAGES_TOKEN: ${{ secrets.GIT_PACKAGES_TOKEN }} + steps: - name: Checkout code uses: actions/checkout@v2 @@ -26,9 +30,6 @@ jobs: - name: Deploy via FTP uses: SamKirkland/FTP-Deploy-Action@v4.3.4 - env: - GIT_USERNAME: ${{ secrets.GIT_USERNAME }} - GIT_PACKAGES_TOKEN: ${{ secrets.GIT_PACKAGES_TOKEN }} with: server: ${{ secrets.FTP_SERVER }} username: ${{ secrets.FTP_USERNAME }} From 4c4e8253cb52242dc7ef691fece35aad70578452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Gabriel?= <35270174+monambike@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:07:57 -0300 Subject: [PATCH 2/4] Update push-hostinger.yml --- .github/workflows/push-hostinger.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-hostinger.yml b/.github/workflows/push-hostinger.yml index c852d5b..4f37ef5 100644 --- a/.github/workflows/push-hostinger.yml +++ b/.github/workflows/push-hostinger.yml @@ -22,8 +22,8 @@ jobs: with: dotnet-version: '8.0.x' - - name: Restore dependencies - run: dotnet restore src/Monambike.Website.sln + - name: Restore NuGet packages + run: dotnet nuget restore src/Monambike.Website.sln -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.GIT_PACKAGES_TOKEN }} - name: Build and publish run: dotnet publish -c Release --output ./publish-folder From 117439364079babe31b61692d27f3a2a5eac11a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Gabriel?= <35270174+monambike@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:10:50 -0300 Subject: [PATCH 3/4] Update push-hostinger.yml --- .github/workflows/push-hostinger.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-hostinger.yml b/.github/workflows/push-hostinger.yml index 4f37ef5..af35539 100644 --- a/.github/workflows/push-hostinger.yml +++ b/.github/workflows/push-hostinger.yml @@ -23,7 +23,9 @@ jobs: dotnet-version: '8.0.x' - name: Restore NuGet packages - run: dotnet nuget restore src/Monambike.Website.sln -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.GIT_PACKAGES_TOKEN }} + run: | + nuget restore src/Monambike.Website.sln # Default restore + nuget restore src/Monambike.Website.sln -Source https://nuget.pkg.github.com/monambike/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} - name: Build and publish run: dotnet publish -c Release --output ./publish-folder From 46dd244dd180f08f78f9bf5a96e7750cc89d6e46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Gabriel?= <35270174+monambike@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:16:50 -0300 Subject: [PATCH 4/4] Update push-hostinger.yml --- .github/workflows/push-hostinger.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-hostinger.yml b/.github/workflows/push-hostinger.yml index af35539..e561e57 100644 --- a/.github/workflows/push-hostinger.yml +++ b/.github/workflows/push-hostinger.yml @@ -22,11 +22,9 @@ jobs: with: dotnet-version: '8.0.x' - - name: Restore NuGet packages - run: | - nuget restore src/Monambike.Website.sln # Default restore - nuget restore src/Monambike.Website.sln -Source https://nuget.pkg.github.com/monambike/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} - + - name: Restore dependencies + run: dotnet restore src/Monambike.Website.sln + - name: Build and publish run: dotnet publish -c Release --output ./publish-folder