From 6e4b4a9d3faec80cdde167be668372b29e131856 Mon Sep 17 00:00:00 2001 From: laureng-hd Date: Wed, 31 Jul 2024 23:59:34 -0700 Subject: [PATCH] DEV-441 hdforce v1.1.2 w/ update to github actions yml files --- .github/workflows/push-test.yml | 4 ++-- .github/workflows/python-docpage.yml | 21 +++++++++------------ .github/workflows/tag-release-publish.yml | 5 +++++ .github/workflows/update-readme.yml | 6 ++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml index 5fb5f23..5a795c6 100644 --- a/.github/workflows/push-test.yml +++ b/.github/workflows/push-test.yml @@ -45,7 +45,7 @@ jobs: - name: Install Poetry if: steps.cache.outputs.cache-hit != 'true' - run: + run: | python -m pip install --upgrade pip pip install poetry @@ -73,4 +73,4 @@ jobs: with: pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} repository_name: "testpypi" - repository_url: "https://test.pypi.org/legacy/" + repository_url: "https://test.pypi.org/legacy/" \ No newline at end of file diff --git a/.github/workflows/python-docpage.yml b/.github/workflows/python-docpage.yml index 19531d5..6f45ba7 100644 --- a/.github/workflows/python-docpage.yml +++ b/.github/workflows/python-docpage.yml @@ -2,21 +2,18 @@ name: Publish Docs Page on: - pull_request_target: - types: - - closed + pull_request: branches: - - 'main' - paths: - - '**.md' + - main + types: [closed] permissions: contents: write jobs: - deploy: runs-on: ubuntu-latest + if: github.event.pull_request.merged == true steps: - name: Checkout Code uses: actions/checkout@v4 @@ -27,16 +24,16 @@ jobs: with: python-version: '3.x' - - name: + - name: Cache dependencies uses: actions/cache@v4 with: key: ${{ github.ref }} path: .cache - - name: install mkdocs - run: + - name: Install mkdocs + run: | pip install mkdocs pip install mkdocs-material - - name: deploy-page - run: mkdocs gh-deploy --force + - name: Deploy page + run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/tag-release-publish.yml b/.github/workflows/tag-release-publish.yml index a96c4fe..eba4f7d 100644 --- a/.github/workflows/tag-release-publish.yml +++ b/.github/workflows/tag-release-publish.yml @@ -18,7 +18,12 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 + - name: Fix Git ownership issue + run: | + git config --global --add safe.directory /github/workspace + - name: Build and publish to pypi uses: JRubics/poetry-publish@v2.0 with: pypi_token: ${{ secrets.PYPI_TOKEN }} + plugins: "poetry-dynamic-versioning[plugin]" \ No newline at end of file diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 904571e..c946172 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -1,12 +1,10 @@ name: Update README Badges on: - push: - branches: - - '*' pull_request: branches: - - '*' + - main + types: [closed] jobs: update-readme: