30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: Validate and generate manual release
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
workflow_dispatch:
|
|
jobs:
|
|
package:
|
|
# Map this existing runner label to a host/shell executor, not a Docker image.
|
|
runs-on: [self-hosted, linux, adaptive-music-release]
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
persist-credentials: false
|
|
- name: Validate and generate offline artifacts
|
|
env:
|
|
RELEASE_REPOSITORY: ${{ vars.RELEASE_REPOSITORY }}
|
|
run: |
|
|
node --version
|
|
node --test tests/js/*.test.mjs
|
|
python3 -m unittest discover -s tests -v
|
|
python3 scripts/audit_repository.py
|
|
python3 scripts/ci_release.py
|
|
# Gitea's artifact protocol varies by instance version; this pinned v3 action
|
|
# is for compatible existing instances. Manual local generation needs no CI.
|
|
- uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
|
|
with:
|
|
name: adaptive-music-manual-release
|
|
path: dist/releases/
|
|
if-no-files-found: error
|