Skip to content

refactor(api): optional auth headers (#481) #43

refactor(api): optional auth headers (#481)

refactor(api): optional auth headers (#481) #43

Workflow file for this run

on:
push:
tags:
- 'v*.*.*'
name: Release
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Clean up
shell: bash
run: rm -rf release && mkdir -p release
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run build
run: pnpm run build:docker
- name: Calculate checksum and rename binary
shell: bash
run: |
tar -czvf release/build.tar.gz ./dist
cd release && shasum -a 256 build.tar.gz > sha256.txt && cd ../
- name: Publish release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
prerelease: false
files: |
release/build.tar.gz
release/sha256.txt
sync:
name: Create PR to update VERSION
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'GreptimeTeam/greptimedb'
- id: update-version
run: |
cd src/servers/dashboard/
echo ${{ github.ref_name }} > VERSION
- uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PR_ACTION }}
commit-message: 'feat: update dashboard to ${{ github.ref_name }}'
committer: GitHub Action <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: dashboard/${{ github.ref_name }}
delete-branch: true
title: 'feat: update dashboard to ${{ github.ref_name }}'
body: |
I hereby agree to the terms of the [GreptimeDB CLA](https://github.com/GreptimeTeam/.github/blob/main/CLA.md).
## Refer to a related PR or issue link (optional)
## What's changed and what's your intention?
AS TITLE
https://github.com/GreptimeTeam/dashboard/releases/tag/${{ github.ref_name }}
## Checklist
- [ ] I have written the necessary rustdoc comments.
- [ ] I have added the necessary unit tests and integration tests.
- [x] This PR does not require documentation updates.