我使用以下配置通過 GitHub 操作部署 Yii2 應用程式:
name: Build and Deploy - DEV
on:
push:
branches:
- development
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Setup Enviroment
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
- name: Install Packages
run: composer install --no-dev --optimize-autoloader
- name: Deploy to Server
uses: yiier/yii2-base-deploy@master
with:
user: github
host: ${{ host }}
path: ${{ path }}
owner: github
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
- name: Apply migration
run: php yii migrate --interactive=0
它作業得很好,但現在給出了這個錯誤:
Current runner version: '2.285.1'
Operating System
Virtual Environment
Virtual Environment Provisioner
GITHUB_TOKEN Permissions
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
Error: Unable to resolve action `yiier/yii2-base-deploy@master`, repository not found
看來已經yiier/yii2-base-deploy@master不存在了。
有誰知道替代品嗎?
謝謝!
uj5u.com熱心網友回復:
感謝 SiZE 的評論,我記得我已經分叉了原始倉庫。
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/409344.html
標籤:
