name: Deploy on: push: branches: [main] workflow_dispatch: {} jobs: deploy: runs-on: ces-control timeout-minutes: 60 steps: - name: Checkout run: | git init . git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" git -c http.extraHeader="Authorization: token ${{ github.token }}" fetch --depth 1 origin "$GITHUB_SHA" git checkout --detach FETCH_HEAD - name: Deploy (systemd service, permanent) env: APP_PORT: ${{ vars.APP_PORT }} run: sh scripts/deploy.sh "$GITHUB_SHA"