Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add release calver to offline.zip
  • Loading branch information
ntoll committed Nov 26, 2025
commit d43e8b02743f5823f816c0f2e65037e53ea8f708
7 changes: 5 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
- name: build offline
run: npm run build:offline

- name: Rename offline.zip with version metadata
run: mv ./dist/offline.zip ./dist/offline_${{ github.ref_name }}.zip

- name: Generate index.html in snapshot
working-directory: .
run: sed -e 's#_PATH_#https://pyscript.net/releases/${{ github.ref_name }}/#' -e 's#_DOC_VERSION_#${{ github.ref_name }}#' -e 's#_TAG_VERSION_#/tag/${{ github.ref_name }}#' -e 's#_VERSION_#${{ github.ref_name }}#' ./public/index.html > ./core/dist/index.html
Expand All @@ -71,7 +74,7 @@ jobs:
- name: Upload offline.zip to release
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload ${{ github.ref_name }} ./dist/offline.zip
run: gh release upload ${{ github.ref_name }} ./dist/offline_${{ github.ref_name }}.zip

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v5
Expand All @@ -82,4 +85,4 @@ jobs:
- name: Sync to S3
run:
| # Create an explicitly versioned directory under releases/YYYY.MM.MICRO/
aws s3 sync --quiet ./dist/ s3://pyscript.net/releases/${{ github.ref_name }}/
aws s3 sync --quiet ./dist/ s3://pyscript.net/releases/${{ github.ref_name }}/