Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 4 additions & 39 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Release
run-name: ${{ inputs.description != '' && format('immerse — {0}', inputs.description) || 'immerse Release' }}
run-name: ${{ inputs.description != '' && format('immerse — {0}', inputs.description) || 'immerse CI' }}

on:
workflow_dispatch:
Expand All @@ -8,18 +8,10 @@ on:
description: 'Branch or SHA to check out (e.g. rc-2352)'
type: string
required: true
release_version:
description: 'Version string for release title (e.g. v3.2.3)'
type: string
default: ''
heavy_eco:
description: 'Enable Heavy Eco build'
type: boolean
default: false
mark_as_latest:
description: 'Promote this release to the repo latest (enables RC builder auto-pull)'
type: boolean
default: false
description:
description: 'Build description label'
type: string
Expand All @@ -28,8 +20,6 @@ on:
jobs:
build:
runs-on: linux-amd64-cpu16
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -55,35 +45,10 @@ jobs:

- name: Build
env:
REPORTER: spec
TARGET: release
DEFAULT_DATA_CATALOG_MANIFEST_URL: https://data-catalog.heavy.ai/manifest.json
HEAVY_ECO: ${{ inputs.heavy_eco == true && 'true' || '' }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
RAYGUN_AUTH_TOKEN: ${{ secrets.RAYGUN_AUTH_TOKEN }}
run: npm run deploy -- --production --branch release
run: npm run build:prod

- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SHA="${{ github.sha }}"
SHORT_SHA="${SHA::8}"
if [ -n "${{ inputs.release_version }}" ]; then
TAG="immerse-${{ inputs.release_version }}-${SHORT_SHA}"
TITLE="immerse ${{ inputs.release_version }} (${SHORT_SHA})"
else
TAG="immerse-${SHORT_SHA}"
TITLE="immerse ${SHORT_SHA}"
fi
if [ -n "${{ inputs.description }}" ]; then
TITLE="$TITLE — ${{ inputs.description }}"
fi
gh release create "$TAG" packages/*.zip \
--repo "${{ github.repository }}" \
--title "$TITLE" \
--notes "Built from \`${{ inputs.release_candidate }}\` (${SHA}) — run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
if [ "${{ inputs.mark_as_latest }}" = "true" ]; then
gh release edit "$TAG" --repo "${{ github.repository }}" --latest
fi
- name: Test
run: npm test
Loading