mirror of
https://github.com/NVIDIA-NeMo/DataDesigner
synced 2026-05-24 09:48:29 +00:00
* ci: bump the all-actions group with 5 updates Bumps the all-actions group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.3.1` | `6.0.2` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `7.6.0` | `8.0.0` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `7.0.0` | `8.0.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `6.0.0` | `7.0.1` | | [NVIDIA-NeMo/FW-CI-templates/.github/workflows/_semantic_pull_request.yml](https://github.com/nvidia-nemo/fw-ci-templates) | `0.65.12` | `0.88.1` | Updates `actions/checkout` from 4.3.1 to 6.0.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.3.1...de0fac2e4500dabe0009e67214ff5f5447ce83dd) Updates `astral-sh/setup-uv` from 7.6.0 to 8.0.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](37802adc94...cec208311d) Updates `actions/download-artifact` from 7.0.0 to 8.0.1 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](37930b1c2a...3e5f45b2cf) Updates `actions/upload-artifact` from 6.0.0 to 7.0.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](b7c566a772...043fb46d1a) Updates `NVIDIA-NeMo/FW-CI-templates/.github/workflows/_semantic_pull_request.yml` from 0.65.12 to 0.88.1 - [Release notes](https://github.com/nvidia-nemo/fw-ci-templates/releases) - [Changelog](https://github.com/NVIDIA-NeMo/FW-CI-templates/blob/main/CHANGELOG.md) - [Commits](21f18ae8b6...2a49420d5a) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions - dependency-name: astral-sh/setup-uv dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions - dependency-name: actions/download-artifact dependency-version: 8.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: all-actions - dependency-name: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_semantic_pull_request.yml dependency-version: 0.88.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: all-actions ... Signed-off-by: dependabot[bot] <support@github.com> * ci: skip docs preview deploy for Dependabot PRs GitHub does not expose repository secrets to Dependabot PRs, so the Cloudflare Pages deploy always fails with a missing API token. Skip the entire job when the actor is dependabot[bot]. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andre Manoel <amanoel@nvidia.com> Co-authored-by: Andre Manoel <165937436+andreatgretel@users.noreply.github.com>
76 lines
2.4 KiB
YAML
76 lines
2.4 KiB
YAML
name: Pack tutorials
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
build-notebooks:
|
|
uses: ./.github/workflows/build-notebooks.yml
|
|
secrets: inherit
|
|
zip-and-upload:
|
|
needs: build-notebooks
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- name: Download artifact from previous step
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
name: notebooks
|
|
path: data_designer_tutorial
|
|
|
|
- name: Set up environment variables
|
|
id: env_setup
|
|
run: |
|
|
echo "SOURCE_FOLDER_PATH=data_designer_tutorial" >> $GITHUB_ENV
|
|
echo "ZIP_FILE_NAME=data_designer_tutorial.zip" >> $GITHUB_ENV
|
|
|
|
- name: Check if source folder exists
|
|
run: |
|
|
if [ ! -d "${{ env.SOURCE_FOLDER_PATH }}" ]; then
|
|
echo "::error::Source folder '${{ env.SOURCE_FOLDER_PATH }}' not found. Check the input value."
|
|
exit 1
|
|
fi
|
|
|
|
- name: Zip the target folder
|
|
run: |
|
|
zip -r ${{ env.ZIP_FILE_NAME }} ${{ env.SOURCE_FOLDER_PATH }}
|
|
echo "Successfully created ${{ env.ZIP_FILE_NAME }}"
|
|
|
|
- name: Find the latest existing release tag
|
|
id: get_release
|
|
run: |
|
|
if [ "${{ github.event_name }}" == "release" ]; then
|
|
LATEST_TAG="${{ github.event.release.tag_name }}"
|
|
else
|
|
echo "::notice::Running manually via workflow_dispatch. Fetching latest release tag..."
|
|
|
|
gh auth status || echo "GitHub CLI is not authenticated, relying on GITHUB_TOKEN."
|
|
|
|
# We use tr -d '\n' to remove the trailing newline for a clean tag string
|
|
LATEST_TAG=$(gh release view --json tagName -q .tagName 2>/dev/null)
|
|
|
|
if [ -z "$LATEST_TAG" ]; then
|
|
echo "::error::Could not find the latest published release tag. Ensure a release exists."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "Latest release tag found: $LATEST_TAG"
|
|
echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload zip file as release asset
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
run: gh release upload "${{ steps.get_release.outputs.tag }}" "${{ env.ZIP_FILE_NAME }}"
|
|
|
|
- name: Cleanup
|
|
if: always()
|
|
run: rm -f ${{ env.ZIP_FILE_NAME }}
|