- master
- v0.1
If not already done, add following folder structure to the project (name of the yml-file is up to you).
.
└── .github/
└── workflows/
└── deployment.yml
Example:
In this example just the 'staging'-Branch is deployed! read more about 'on:' here: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#on
name: Deployment (Staging)
on:
push:
branches:
- staging
jobs:
build:
name: Deployment
runs-on: ubuntu-18.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install PHP dependencies
uses: helllicht/composer-install@v1
- ...
- Go to: https://github.com/composer/getcomposer.org/commits/master
- Get the latest commit sha
- replace it in the script
Breaking changes are not allowed when updating an active version!
- checkout the branch (e.g. v1)
- ...change code
- commit & push
Make release note with a short overview.
- create a new branch (e.g. v3)
- ...change code
- commit & push (with dist folder!)