-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add GitHub action to make a release (#7454)
* Creat e test action * Update make release action * Find base branch * Fix branch detection * setup commit user * Add virtual env * Delete remote branch only if it exists * Remove read command * Create local copy of scripts * First delete old local branch then remote... * Allow repeated execution
- Loading branch information
Showing
8 changed files
with
126 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Create a django CMS release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version number to create, e.g., "3.11.1rc1"' | ||
required: true | ||
type: string | ||
branches: | ||
- 'develop*' | ||
- 'release/**' | ||
|
||
jobs: | ||
make-release: | ||
if: github.actor == 'marksweb' || github.actor == 'fsbraun' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
- name: Start building version ${{ inputs.version }} | ||
env: | ||
BUILD_BRANCH: release/build | ||
TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
run: ./scripts/make-release ${{ inputs.version }} ${GITHUB_REF} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
|
||
[django-cms.js] | ||
[o:divio:p:django-cms:r:core] | ||
file_filter = cms/locale/<lang>/LC_MESSAGES/django.po | ||
source_file = cms/locale/en/LC_MESSAGES/django.po | ||
source_lang = en | ||
|
||
[o:divio:p:django-cms:r:js] | ||
file_filter = cms/locale/<lang>/LC_MESSAGES/djangojs.po | ||
source_file = cms/locale/en/LC_MESSAGES/djangojs.po | ||
source_lang = en | ||
|
||
[django-cms.core] | ||
file_filter = cms/locale/<lang>/LC_MESSAGES/django.po | ||
source_file = cms/locale/en/LC_MESSAGES/django.po | ||
source_lang = en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import django | ||
|
||
__version__ = '3.11.0' | ||
|
||
if django.VERSION < (3, 2): | ||
default_app_config = 'cms.apps.CMSConfig' | ||
try: | ||
import django | ||
|
||
if django.VERSION < (3, 2): | ||
default_app_config = 'cms.apps.CMSConfig' | ||
|
||
except ModuleNotFoundError: | ||
# dependencies not installed yet | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -e | ||
|
||
SCRIPTS=$(dirname "$(realpath "$0")") | ||
ROOT=$(git rev-parse --show-toplevel) | ||
|
||
cd "${ROOT}/cms" | ||
|
||
tx pull -f | ||
"${SCRIPTS}/tx" --token "$TX_TOKEN" pull --force | ||
django-admin compilemessages | ||
|
||
"${SCRIPTS}/filter-locale-changes" |
Oops, something went wrong.