diff --git a/.github/workflows/push-hostinger.yml b/.github/workflows/push-hostinger.yml index 9d748a7..e561e57 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 @@ -20,15 +24,12 @@ jobs: - name: Restore dependencies run: dotnet restore src/Monambike.Website.sln - + - name: Build and publish run: dotnet publish -c Release --output ./publish-folder - 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 }}