diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 3dae9348..b695be52 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -13,6 +13,13 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Setup SSH Deploy Key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.CI_SECRET_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -t ed25519 gitea.psi.ch >> ~/.ssh/known_hosts + - name: Install Pixi and dependencies run: | curl -fsSL https://pixi.sh/install.sh | bash @@ -63,10 +70,8 @@ jobs: git config user.name "ci-bot" git config user.email "ci-bot@example.com" git add ci-reports/markdown/coverage-summary.md ci-reports/markdown/test-summary.md - git commit -m "Update test summaries [skip ci]" || echo "Nothing to commit" - git push https://ci-token:${{ secrets.CI_TOKEN }}@gitea.psi.ch/tligui_y/slic.git HEAD:utils_testing - env: - CI_TOKEN: ${{ secrets.CI_TOKEN }} + git commit -m "Update test summaries" || echo "Nothing to commit" + git push git@gitea.psi.ch:tligui_y/slic.git HEAD:utils_testing - name: Link to report run: | @@ -78,8 +83,6 @@ jobs: echo "${base_url}/report_${ts}.html" echo "==============================" - - - name: Deploy Allure report to GitHub run: | git clone https://x-access-token:${{ secrets.RENDER_GITHUB_TOKEN }}@github.com/Yaspsi/pytest-report-render.git deploy-repo @@ -90,4 +93,4 @@ jobs: git config user.email "ci-bot@example.com" git add . git commit -m "Deploy Allure report" || echo "Nothing to commit" - git push origin main \ No newline at end of file + git push origin main