Убрал CI/CD конфиг, все равно не работает
This commit is contained in:
		
							parent
							
								
									126656d14e
								
							
						
					
					
						commit
						30afd5eff8
					
				|  | @ -1,47 +0,0 @@ | ||||||
| name: Gitea Actions |  | ||||||
| run-name: ${{ gitea.actor }} is testing out Gitea Actions ?? |  | ||||||
| on: [push] |  | ||||||
| 
 |  | ||||||
| jobs: |  | ||||||
|   Explore-Gitea-Actions: |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     env: |  | ||||||
|       COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_AUTH }}"}}' |  | ||||||
|     name: Build and deploy |  | ||||||
|     steps: |  | ||||||
|       - name: Migrate env file |  | ||||||
|         run: |  |  | ||||||
|           echo "${{ secrets.ENVIRONMENT }}" > ./.env |  | ||||||
|           cat ./.env    |  | ||||||
|       - name: Install Node |  | ||||||
|         uses: actions/setup-node@v4 |  | ||||||
|         with: |  | ||||||
|           node-version: 18 |  | ||||||
|       - name: Checkout code |  | ||||||
|         uses: actions/checkout@v3 |  | ||||||
|       - name: Install PHP |  | ||||||
|         uses: shivammathur/setup-php@v2 |  | ||||||
|         with: |  | ||||||
|           php-version: '8.2' |  | ||||||
|           extensions: curl, exif, fileinfo, mbstring, mysqli, mysqlnd, openssl, PDO, pdo_mysql   |  | ||||||
|       - name: Update npm dependencies |  | ||||||
|         run: |  |  | ||||||
|           node -v |  | ||||||
|           npm i --progress=false |  | ||||||
|       - name: Update composer dependencies |  | ||||||
|         uses: "ramsey/composer-install@v3" |  | ||||||
|         with: |  | ||||||
|           dependency-versions: "locked" |  | ||||||
|       - name: Build frontend |  | ||||||
|         run: npm run build |  | ||||||
|       - name: Deploy to Server |  | ||||||
|         uses: https://gitea.com/aquelle1/ssh-deploy@main |  | ||||||
|         env: |  | ||||||
|           SSH_PRIVATE_KEY: ${{ secrets.SSH_KEY }} |  | ||||||
|           ARGS: "-rlgoDzvc -i --delete" |  | ||||||
|           SOURCE: "./"  |  | ||||||
|           REMOTE_HOST: ${{ secrets.SSH_HOST }} |  | ||||||
|           REMOTE_USER: ${{ secrets.SSH_USER }} |  | ||||||
|           TARGET: ${{ secrets.SSH_DIR }} |  | ||||||
|           SCRIPT_BEFORE: systemctl stop resume |  | ||||||
|           SCRIPT_AFTER: systemctl start resume |  | ||||||
		Loading…
	
		Reference in New Issue