diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 38dcfe3c..1b29b486 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -60,9 +60,12 @@ 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 + run: sed -e 's#_PATH_#https://pyscript.net/releases/${{ github.ref_name }}/#g' -e 's#_DOC_VERSION_#${{ github.ref_name }}#g' -e 's#_TAG_VERSION_#/tag/${{ github.ref_name }}#g' -e 's#_VERSION_#${{ github.ref_name }}#g' ./public/index.html > ./core/dist/index.html - name: Generate release.tar from snapshot and put it in dist/ working-directory: . @@ -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 diff --git a/public/index.html b/public/index.html index 64cb079f..e4fa8b37 100644 --- a/public/index.html +++ b/public/index.html @@ -85,8 +85,8 @@
  • core.js
  • core.js.map
  • - offline.zip (PyScript _VERSION_ - zipped up for offline use) + offline__VERSION_.zip + (PyScript _VERSION_ zipped up for offline use)
  • @@ -125,8 +125,9 @@ d="M43.3,6h-1.6c-0.5,0-0.8,0.3-0.8,0.8V10c0,3.5-2.8,6.4-6.3,6.4H17.4c-3.5,0-6.3-2.9-6.3-6.4V6.8 c0-0.5-0.3-0.8-0.8-0.8H8.7C6.1,6,4,8.2,4,10.8v34.4C4,47.8,6.1,50,8.7,50h34.6c2.6,0,4.7-2.2,4.7-4.8V10.8C48,8.2,45.9,6,43.3,6z" /> - + + +
     <!DOCTYPE html>