Skip to content

Commit

Permalink
Update POM at deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
p-goulart committed Jul 16, 2024
1 parent 371df29 commit edb7f42
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,30 @@ jobs:
- name: Set dictionary version
run: echo "FR_DICT_VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//g')" >> $GITHUB_ENV

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Set up Poetry
uses: Gr1N/setup-poetry@v8

- name: Check Poetry config
run: poetry check

- name: Install Python dependencies
run: poetry install
env:
POETRY_HTTP_BASIC_GITLAB_USERNAME: "lt-ai-package-registry"
POETRY_HTTP_BASIC_GITLAB_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_GITLAB_PASSWORD }}

- name: Add dictionary version to package pom
run: |
poetry run python "dict_tools/scripts/update_pom.py" \
--new-version "${{ env.PT_DICT_VERSION }}" \
--package-name "portuguese-pos-dict" \
--verbosity debug
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit edb7f42

Please sign in to comment.