Cleaner nightly release notes (#4668)

* Bump: Improve and fix nightly release notes

* Clean up after manual push

* Consistency tweak
This commit is contained in:
Pierre Jacquier
2024-12-05 15:14:58 -05:00
committed by GitHub
parent 8072f1db63
commit 7a21918223
2 changed files with 12 additions and 3 deletions

View File

@ -362,6 +362,17 @@ jobs:
- name: List artifacts - name: List artifacts
run: "ls -R out" run: "ls -R out"
- name: Set more complete nightly release notes
if: ${{ env.IS_NIGHTLY == 'true' }}
run: |
# Note: prefered going this way instead of a full clone in the checkout step,
# see https://github.com/actions/checkout/issues/1471
git fetch --prune --unshallow --tags
export TAG="nightly-${VERSION}"
export PREVIOUS_TAG=$(git describe --tags --match="nightly-v[0-9]*" --abbrev=0)
export NOTES=$(./scripts/get-nightly-changelog.sh)
yarn files:set-notes
- name: Authenticate to Google Cloud - name: Authenticate to Google Cloud
if: ${{ env.IS_NIGHTLY == 'true' }} if: ${{ env.IS_NIGHTLY == 'true' }}
uses: 'google-github-actions/auth@v2.1.7' uses: 'google-github-actions/auth@v2.1.7'

View File

@ -1,8 +1,6 @@
#!/bin/bash #!/bin/bash
export VERSION=$(date +'%-y.%-m.%-d') export VERSION=$(date +'%-y.%-m.%-d')
export TAG="nightly-v$VERSION"
export PREVIOUS_TAG=$(git describe --tags --match="nightly-v[0-9]*" --abbrev=0)
export COMMIT=$(git rev-parse --short HEAD) export COMMIT=$(git rev-parse --short HEAD)
# package.json # package.json
@ -15,7 +13,7 @@ yq -i '.publish[0].url = "https://dl.zoo.dev/releases/modeling-app/nightly"' ele
yq -i '.appId = "dev.zoo.modeling-app-nightly"' electron-builder.yml yq -i '.appId = "dev.zoo.modeling-app-nightly"' electron-builder.yml
# Release notes # Release notes
./scripts/get-nightly-changelog.sh > release-notes.md echo "Nightly build $VERSION (commit $COMMIT)" > release-notes.md
# icons # icons
cp assets/icon-nightly.png assets/icon.png cp assets/icon-nightly.png assets/icon.png