diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 2fe397c..8e577f8 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -6,6 +6,7 @@ env: POETRY_VERSION: "1.7.0" PYTHON_VERSION: "3.9" DATALOGGER_VERSION: "0.3.0" + PACKAGE_NAME: "datalogger" jobs: build: @@ -38,25 +39,30 @@ jobs: echo ' - datalogger + ${{ env.PACKAGE_NAME }} ' > _site/releases/index.html - - name: Create _site/releases/datalogger/index.html + - name: Create _site/releases//index.html run: | - mkdir _site/releases/datalogger + mkdir _site/releases/${{ env.PACKAGE_NAME }} echo ' - - datalogger-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl + + ${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl + + + ${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}.tar.gz - datalogger-${{ env.DATALOGGER_VERSION }}.tar.gz - ' > _site/releases/datalogger/index.html + ' > _site/releases/${{ env.PACKAGE_NAME }}/index.html + + - name: Create _site/latest.tar.gz + run: cp dist/*.tar.gz _site/latest.tar.gz - - name: Move package files into _site/releases/datalogger - run: mv dist/* _site/releases/datalogger + - name: Move package files into _site/releases/ + run: mv dist/* _site/releases/${{ env.PACKAGE_NAME }} - name: Upload site artifact uses: actions/upload-pages-artifact@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index d7b8452..d5c152f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Added + +- Latest source distribution (latest.tar.gz) added to Pages site. + ## [0.3.0] (Nov 6 2023) ### Added