Skip to content

Commit

Permalink
CI Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 13, 2024
1 parent 4bbb6fd commit 6127e68
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6127e68

Please sign in to comment.