name: Develop Github runner on: push: branches: [ main ] jobs: Deploy: runs-on: ubuntu-latest steps: - id: deploy uses: bitovi/github-actions-deploy-github-runner-to-ec2@v0.1.3 with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID_DEVELOPMENT }} aws_secret_access_key: ${{ secr...
Create .github/workflows/deploy.yaml with the following to build on push. Basic example name: Basic deploy on: push: branches: [ main ] jobs: EC2-Deploy: runs-on: ubuntu-latest steps: - id: deploy uses: bitovi/github-actions-deploy-docker-to-ec2@v0.5.8 with: aws_access_key_id: ${...
jobs: my_first_job: steps: - name: My first step uses: actions/aws/ec2@main 示例:使用工作流程所在仓库中操作 ./path/to/dir 包含工作流程的仓库中操作的目录路径。 在使用操作之前,必须检出仓库。 示例仓库文件结构: |-- hello-world (repository) | |__ .github | └── workflows | ...
and others to match more than one branch or tag name. If a name contains any of these characters and you want a literal match, you need toescapeeach of these special characters with\. For more information about glob patterns, see the "Workflow syntax for GitHub Actions." Example: Includin...
在你的GitHub项目中,创建.github/workflows/deploy.yml文件,内容如下: name:Deploy to EC2on:push:branches:-mainjobs:deploy:runs-on:ubuntu-lateststeps:-name:Checkout the codeuses:actions/checkout@v2-name:Copy files to EC2uses:appleboy/scp-action@masterwith:host:${{secrets.EC2_HOST}}username:${...
Migrate to GitHub Actions Administer GitHub Actions Guides for GitHub Actions GitHub Actions/ Write workflows/ Workflow syntax for GitHub Actions A workflow is a configurable automated process made up of one or more jobs. You must create a YAML file to define your workflow configuration. ...
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} on To automatically trigger a workflow, use on to define which events can cause the workflow to run. For a list of available events, see Events that trigger workflows. You can define single or multiple events...
name: Basic deploy on: push: branches: [ main ] jobs: EC2-Deploy: runs-on: ubuntu-latest steps: - id: deploy name: Deploy uses: bitovi/github-actions-deploy-ollama@0.1.0 with: aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID}} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACC...
:package: Create, deploy to, and shutdown Amazon EC2 instances - GitHub - bevacqua/grunt-ec2: :package: Create, deploy to, and shutdown Amazon EC2 instances
name: example-workflow on: [push] jobs: production-deploy: if: github.repository == 'octo-org/octo-repo-prod' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: '14' - run: npm install -g bats jobs.<job_id>.runs-on jobs...