diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index c62294a..bee6404 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -65,7 +65,7 @@ jobs: - name: Restore, Build and Test run: | - dotnet nuget add source https://nuget.pkg.github.com/atas/index.json -n github -u ${{github.repository_owner}} -p ${{secrets.PKGS_READ_TOKEN}} --store-password-in-clear-text + dotnet nuget add source https://nuget.pkg.github.com/atas/index.json -n github --store-password-in-clear-text dotnet restore dotnet build --no-restore dotnet test --no-build --verbosity normal --filter FullyQualifiedName~Tests @@ -87,7 +87,7 @@ jobs: permissions: contents: write needs: build_and_test - if: github.ref == 'refs/heads/master' + if: github.ref == 'refs/heads/main' steps: - name: Checkout repository uses: actions/checkout@v2 @@ -120,23 +120,12 @@ jobs: --notes "$commit_msg" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up SSH - run: | - mkdir -p ~/.ssh/ - ls -lha ~/.ssh - echo "${{ secrets.SSH_PRIV_ARES_UF }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -p 1989 ${{ secrets.PROD_HOST }} >> ~/.ssh/known_hosts - - - name: Trigger pull-deploy - run: | - ssh -p1989 ata@${{ secrets.PROD_HOST }} "/opt/swipetor/bin/pull-deploy/run.sh" deploy: - needs: build_and_test runs-on: ubuntu-latest + needs: release + if: github.ref == 'refs/heads/main' environment: main steps: - name: Set up SSH