name: Deploy app on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Download kubectl run: curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - name: Setting up kubeconfig run: echo "${{ secrets.KUBE_CONFIG }}" > kube.config - name: Check if it works run: ./kubectl --kubeconfig ./kube.config get nodes