mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-14 03:11:19 +00:00
WebFreak001/deploy-nightly still targets Node.js 20, so every main build logged a deprecation warning per deploy step. The action has had no release since 2024 and its Node 24 PR is unmerged. The local action in .github/actions/deploy-nightly uploads the new file under a temporary name and renames it once the upload finishes, so a failed upload keeps the existing nightly asset. It also fails on a missing file before deleting anything, retries transient API errors, times out stalled transfers, handles concurrent runs, and finds the release by its nightly-builds tag. The macOS validator DMG deploy now runs only when that DMG was built.
30 lines
868 B
YAML
30 lines
868 B
YAML
name: 'Deploy Nightly'
|
|
description: 'Upload a file to a release, replacing the asset of the same name'
|
|
inputs:
|
|
asset_path:
|
|
description: 'Path of the file to upload'
|
|
required: true
|
|
asset_name:
|
|
description: 'Asset name on the release'
|
|
required: true
|
|
content_type:
|
|
description: 'Content type of the uploaded file'
|
|
required: false
|
|
default: 'application/octet-stream'
|
|
tag:
|
|
description: 'Tag of the release to upload to'
|
|
required: false
|
|
default: 'nightly-builds'
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: Replace release asset
|
|
shell: bash
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
ASSET_PATH: ${{ inputs.asset_path }}
|
|
ASSET_NAME: ${{ inputs.asset_name }}
|
|
CONTENT_TYPE: ${{ inputs.content_type }}
|
|
RELEASE_TAG: ${{ inputs.tag }}
|
|
run: bash "$GITHUB_ACTION_PATH/deploy.sh"
|