diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 93937b3..11e5350 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -8,8 +8,6 @@ jobs: build: container: image: focs.ji.sjtu.edu.cn:5000/gitea/runner-images:golang-ubuntu-latest - volumes: - - /home/actions/.ssh:/root/.ssh steps: - name: Check out repository code uses: https://gitea.com/BoYanZh/checkout@focs @@ -19,7 +17,10 @@ jobs: run: | go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct - chown -R root:root /root/.ssh + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + shell: bash - name: Determine build command id: build_command run: |