GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - deployphp/action: GitHub Action for Deployer

BranchesTags
Open more actions menu

Latest commit

 

History

63 Commits
63 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
dist
dist
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
action.yaml
action.yaml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

GitHub Action for Deployer

- name: Deploy
  uses: deployphp/action@v1
  with:
    dep: deploy
    private-key: ${{ secrets.PRIVATE_KEY }}

Inputs

- name: Deploy
  uses: deployphp/action@v1
  with:
    # The deployer task to run. For example:
    # `deploy all`.
    # Required.
    dep: deploy

    # The path to the PHP binary to use.
    # Optional.
    php-binary: 'php'

    # Specifies a sub directory within the repository to deploy
    # Optional
    sub-directory: '...'

    # Config options for the Deployer. Same as the `-o` flag in the CLI.
    # Optional.
    options:
      keep_releases: 7

    # Private key for connecting to remote hosts. To generate private key:
    # `ssh-keygen -o -t rsa -C '[email protected]'`.
    # Optional.
    private-key: ${{ secrets.PRIVATE_KEY }}

    # Content of `~/.ssh/known_hosts` file. The public SSH keys for a
    # host may be obtained using the utility `ssh-keyscan`.
    # For example: `ssh-keyscan deployer.org`.
    # If known-hosts omitted, `StrictHostKeyChecking no` will be added to
    # `ssh_config`.
    # Optional.
    known-hosts: |
      ...

    # The SSH configuration. Content of `~/.ssh/config` file.
    # Optional.
    ssh-config: |
      ...

    # Option to skip over the SSH setup/configuration.
    # Self-hosted runners don't need the SSH configuration or the SSH agent
    # to be started.
    # Optional.
    skip-ssh-setup: false

    # Deployer version to download from deployer.org.
    # First, the action will check for Deployer binary at those paths:
    # - `vendor/bin/deployer.phar`
    # - `vendor/bin/dep`
    # - `deployer.phar`
    # If the binary not found, phar version will be downloaded from
    # deployer.org.
    # Optional.
    deployer-version: '7.0.0'

    # You can specify path to your local Deployer binary in the repo.
    # Optional.
    deployer-binary: 'bin/dep'

    # You can choose to disable ANSI output.
    # Optional. Defaults to true.
    ansi: false

    # You can specify the output verbosity level.
    # Optional. Defaults to -v.
    verbosity: -vvv

Example

name: deploy

on: push

# It is important to specify "concurrency" for the workflow,
# to prevent concurrency between different deploys.
concurrency: production_environment

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: '8.1'

      - name: Install dependencies
        run: composer install

      - name: Deploy
        uses: deployphp/action@v1
        with:
          dep: deploy
          private-key: ${{ secrets.PRIVATE_KEY }}

About

GitHub Action for Deployer

Resources

Readme
MIT license
Activity
Custom properties

Stars

268 stars

Watchers

5 watching

Forks

59 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.