i18n: Update POT and PO files (#3729) #4
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
--- | |
name: Create or check a release draft | |
on: | |
push: | |
branches: | |
- main | |
- releasebranch_* | |
tags: | |
- '**' | |
pull_request: | |
paths: | |
- .github/** | |
- utils/** | |
env: | |
OUT_DIR: ${{ github.workspace }}/../grass_outdir | |
GRASS: grass-${{ github.ref_name }} | |
permissions: {} | |
jobs: | |
build: | |
name: Package and create release draft | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checks-out repository | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | |
with: | |
python-version: '3.11' | |
- name: Create output directory | |
run: | | |
mkdir ${{ env.OUT_DIR }} | |
- name: Generate ChangeLog file | |
run: | | |
python utils/gitlog2changelog.py | |
mv ChangeLog ${{ env.OUT_DIR }}/ChangeLog | |
gzip ${{ env.OUT_DIR }}/ChangeLog | |
- name: Generate Git derived data files | |
run: | | |
echo "Generate VERSION_GIT file:" | |
./utils/generate_version_git_file.sh | |
cat include/VERSION_GIT | |
echo "Generate GENERATE_LAST_COMMIT_FILE:" | |
python utils/generate_last_commit_file.py . | |
cat core_modules_with_last_commit.json | |
echo "Create core modules patch file:" | |
git add core_modules_with_last_commit.json | |
git diff --cached > \ | |
${{ env.OUT_DIR }}/core_modules_with_last_commit.patch | |
- name: Create tarballs (for tags only) | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
cd .. | |
tar -cvf ${{ env.OUT_DIR }}/${{ env.GRASS }}.tar \ | |
--exclude=".gi*" --exclude=".tr*" grass | |
cd ${{ env.OUT_DIR }} | |
gzip -9k ${{ env.GRASS }}.tar | |
md5sum ${{ env.GRASS }}.tar.gz > ${{ env.GRASS }}.tar.gz.md5 | |
sha256sum ${{ env.GRASS }}.tar.gz > ${{ env.GRASS }}.tar.gz.sha256 | |
xz -9e ${{ env.GRASS }}.tar | |
md5sum ${{ env.GRASS }}.tar.xz > ${{ env.GRASS }}.tar.xz.md5 | |
sha256sum ${{ env.GRASS }}.tar.xz > ${{ env.GRASS }}.tar.xz.sha256 | |
- name: Publish draft distribution to GitHub (for tags only) | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5 | |
with: | |
name: GRASS GIS ${{ github.ref_name }} | |
body: | | |
Overview of changes | |
- First change | |
- Second change | |
draft: true | |
prerelease: ${{ contains(github.ref, 'RC') }} | |
files: | | |
${{ env.OUT_DIR }}/${{ env.GRASS }}.tar.gz | |
${{ env.OUT_DIR }}/${{ env.GRASS }}.tar.gz.md5 | |
${{ env.OUT_DIR }}/${{ env.GRASS }}.tar.gz.sha256 | |
${{ env.OUT_DIR }}/${{ env.GRASS }}.tar.xz | |
${{ env.OUT_DIR }}/${{ env.GRASS }}.tar.xz.md5 | |
${{ env.OUT_DIR }}/${{ env.GRASS }}.tar.xz.sha256 | |
${{ env.OUT_DIR }}/ChangeLog.gz | |
${{ env.OUT_DIR }}/core_modules_with_last_commit.patch |