我正在尝试使用 Github Actions 部署到蒸汽。我正在使用https://docs.vapor.build/1.0/projects/deployments.html#deploying-from-ci上描述的操作。
name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: composer:v2
coverage: none
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Require Vapor CLI
run: composer global require laravel/vapor-cli
- name: Deploy Environment
run: vapor deploy
env:
VAPOR_API_TOKEN: ${{ secrets.VAPOR_API_TOKEN }}
由于此错误,github 操作一直失败:
Error Output:
================
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/jawid-h/protobuf
.js.git
npm ERR!
npm ERR! Warning: Permanently added the RSA host key for IP address '140.82
.113.4' to the list of known hosts.
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
我已经尝试过传递 GITHUB_TOKEN,但不知何故不起作用。