Skip to content
Merged
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ jobs:
echo Next version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT

- name: Make version info file
run: |
cat > cli-version.json << EOF
{
"CLI": "${{steps.next-ver.output.VERSION}}"
}
EOF

- name: Upload version info
uses: actions/upload-artifact@v4
with:
name: cli-version.json
path: ${{ github.workspace }}/cli-version.json
if-no-files-found: error

build:
name: Build and test
needs: semver
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/make_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

name: Release

on:

workflow_dispatch:
inputs:
target_branch:
description: 'Branch to run on'
required: true
default: 'main'
env:
LOCAL_ARTIFACTS: ${{ github.workspace }}/local_artifacts

permissions:
contents: write
actions: read

jobs:

prepare:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Grab artifacts
uses: dawidd6/action-download-artifact@v11
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: ci.yml
workflow_conclusion: completed
branch: main
path: ${{ env.LOCAL_ARTIFACTS }}

- name: Detect versions
id: get-tag
run: |
TAG=$(jq -r '.CLI' ${{ env.LOCAL_ARTIFACTS }}/cli-version.json)
echo "TAG=v$TAG" >> $GITHUB_OUTPUT

- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ env.LOCAL_ARTIFACTS }}/*.zip"
generateReleaseNotes: true
draft: true
name: ${{ steps.get-tag.outputs.TAG}}
tag: ${{ steps.get-tag.outputs.TAG}}
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Loading