Skip to content

Commit

Permalink
Add latest.tar.gz to pages site
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Nov 9, 2023
1 parent 3ecba15 commit b77264b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env:
POETRY_VERSION: "1.7.0"
PYTHON_VERSION: "3.9"
DATALOGGER_VERSION: "0.3.0"
PACKAGE_NAME: "datalogger"

jobs:
build:
Expand Down Expand Up @@ -38,25 +39,30 @@ jobs:
echo '<!DOCTYPE html>
<html>
<body>
<a href="datalogger/">datalogger</a>
<a href="${{ env.PACKAGE_NAME }}/">${{ env.PACKAGE_NAME }}</a>
</body>
</html>' > _site/releases/index.html
- name: Create _site/releases/datalogger/index.html
- name: Create _site/releases/<package-name>/index.html
run: |
mkdir _site/releases/datalogger
mkdir _site/releases/${{ env.PACKAGE_NAME }}
echo '<!DOCTYPE html>
<html>
<body>
<a href="datalogger-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl">
datalogger-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl
<a href="${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl">
${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl
</a>
<a href="${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}.tar.gz">
${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}.tar.gz
</a>
<a href="datalogger-${{ env.DATALOGGER_VERSION }}.tar.gz">datalogger-${{ env.DATALOGGER_VERSION }}.tar.gz</a>
</body>
</html>' > _site/releases/datalogger/index.html
</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/<package-name>
run: mv dist/* _site/releases/${{ env.PACKAGE_NAME }}

- name: Upload site artifact
uses: actions/upload-pages-artifact@v1
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b77264b

Please sign in to comment.