Merge pull request #1424 from ds-wizard/release/4.22.0 #150
Workflow file for this run
This file contains hidden or 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: Gettext CI | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| jobs: | |
| pot: | |
| name: Create pot files | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [ 20 ] | |
| steps: | |
| - name: '[setup] Checkout Project' | |
| uses: actions/checkout@v5 | |
| - name: '[setup] Node.js ${{ matrix.node-version }}' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: '[app] Install' | |
| run: | | |
| npm ci | |
| - name: '[app] Create .pot File' | |
| run: | | |
| npm run pot | |
| - name: '[release] Check Prerelease' | |
| id: check_prerelease | |
| run: | | |
| GITHUB_TAG=`echo $GITHUB_REF | cut -d/ -f3` | |
| if [[ $GITHUB_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "is_prerelease=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "is_prerelease=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: '[release] Create & Upload Artifacts' | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: true | |
| artifactErrorsFailBuild: true | |
| artifacts: "locale/wizard.pot,locale/registry.pot" | |
| artifactContentType: text/plain | |
| prerelease: ${{ steps.check_prerelease.outputs.is_prerelease }} | |
| replacesArtifacts: true |