diff --git a/.github/workflows/deploy_docs_4x.yml b/.github/workflows/deploy_docs_4x.yml new file mode 100644 index 00000000..4e982134 --- /dev/null +++ b/.github/workflows/deploy_docs_4x.yml @@ -0,0 +1,23 @@ +--- +name: 'deploy_docs_4x' + +on: + push: + branches: + - 4.x + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Cloning repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Push to dokku + uses: dokku/github-action@master + with: + git_remote_url: 'ssh://dokku@apps.cakephp.org:22/migrations-docs-4' + ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} diff --git a/Dockerfile b/Dockerfile index 478f14c7..70ceb413 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Basic docker based environment # Necessary to trick dokku into building the documentation # using dockerfile instead of herokuish -FROM ubuntu:17.04 +FROM ubuntu:22.04 # Add basic tools RUN apt-get update && \ @@ -14,7 +14,7 @@ RUN apt-get update && \ libssl-dev && \ LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php && \ apt-get update && \ - apt-get install -y php7.2-cli php7.2-mbstring php7.2-xml php7.2-zip php7.2-intl php7.2-opcache php7.2-sqlite &&\ + apt-get install -y php8.1-cli php8.1-mbstring php8.1-xml php8.1-zip php8.1-intl php8.1-opcache php8.1-sqlite &&\ apt-get clean &&\ rm -rf /var/lib/apt/lists/* diff --git a/README.md b/README.md index 2d8199fe..88dbc776 100644 --- a/README.md +++ b/README.md @@ -41,4 +41,4 @@ Additionally, you will need to configure the ``default`` database configuration ## Documentation -Full documentation of the plugin can be found on the [CakePHP Cookbook](https://book.cakephp.org/migrations/3/). +Full documentation of the plugin can be found on the [CakePHP Cookbook](https://book.cakephp.org/migrations/4/). diff --git a/docs.Dockerfile b/docs.Dockerfile index 905d56dd..0b6aefb8 100644 --- a/docs.Dockerfile +++ b/docs.Dockerfile @@ -12,7 +12,7 @@ FROM ghcr.io/cakephp/docs-builder:runtime as runtime ENV LANGS="en fr ja pt ru" ENV SEARCH_SOURCE="/usr/share/nginx/html" -ENV SEARCH_URL_PREFIX="/migrations/3" +ENV SEARCH_URL_PREFIX="/migrations/4" COPY --from=builder /data/docs /data/docs COPY --from=builder /data/website /data/website diff --git a/docs/config/all.py b/docs/config/all.py index 68ab4555..e3339bd2 100644 --- a/docs/config/all.py +++ b/docs/config/all.py @@ -10,10 +10,10 @@ # # The full version, including alpha/beta/rc tags. -release = '3.x' +release = '4.x' # The search index version. -search_version = 'migrations-3' +search_version = 'migrations-4' # The marketing display name for the book. version_name = '' @@ -24,7 +24,8 @@ # Other versions that display in the version picker menu. version_list = [ {'name': '2.x', 'number': 'migrations/2', 'title': '2.x'}, - {'name': '3.x', 'number': 'migrations/3', 'title': '3.x', 'current': True}, + {'name': '3.x', 'number': 'migrations/3', 'title': '3.x'}, + {'name': '4.x', 'number': 'migrations/4', 'title': '4.x', 'current': True}, ] # Languages available. @@ -32,10 +33,10 @@ # The GitHub branch name for this version of the docs # for edit links to point at. -branch = '3.x' +branch = '4.x' # Current version being built -version = '3.x' +version = '4.x' # Language in use for this directory. language = 'en'