mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73f7ac057c | ||
|
|
d359d53fb7 | ||
|
|
ba2fc55188 | ||
|
|
a6896c9b50 | ||
|
|
8dd74f310d | ||
|
|
44ed9e9ca6 | ||
|
|
c925407f05 | ||
|
|
622fc369d0 |
@@ -12,8 +12,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
outputs:
|
||||
draft_tag: ${{ steps.release_step.outputs.draft_tag }}
|
||||
steps:
|
||||
- uses: actions/create-github-app-token@v1
|
||||
id: app-token
|
||||
@@ -42,34 +40,10 @@ jobs:
|
||||
- name: Fetch tags
|
||||
run: git fetch --tags
|
||||
|
||||
# - name: Run release-it
|
||||
# id: release_step
|
||||
# run: |
|
||||
# git pull origin main
|
||||
# pnpm exec release-it --ci
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
- name: Run release-it
|
||||
id: release_step
|
||||
run: |
|
||||
git pull origin main
|
||||
OUTPUT=$(pnpm exec release-it --ci)
|
||||
echo "$OUTPUT"
|
||||
# Extract the untagged draft release name
|
||||
DRAFT_TAG=$(echo "$OUTPUT" | grep -o 'releases/tag/[^ ]*' | sed 's|releases/tag/||')
|
||||
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
|
||||
pnpm exec release-it --ci
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
|
||||
- name: Log draft release tag
|
||||
run: |
|
||||
echo "The temporary draft release tag is: ${{ steps.release_step.outputs.draft_tag }}"
|
||||
|
||||
- name: Write draft tag to file
|
||||
run: echo "${{ steps.release_step.outputs.draft_tag }}" > draft_tag.txt
|
||||
|
||||
- name: Save draft tag artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: draft_tag
|
||||
path: draft_tag.txt
|
||||
@@ -1,10 +1,12 @@
|
||||
name: Publish Docker image for release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*.*.*"
|
||||
- "!*-*"
|
||||
release:
|
||||
types: [ created ]
|
||||
# push:
|
||||
# tags:
|
||||
# - "*.*.*"
|
||||
# - "!*-*"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -12,22 +14,12 @@ permissions:
|
||||
|
||||
jobs:
|
||||
|
||||
|
||||
log-draft-tag:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download draft tag artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: draft_tag
|
||||
path: .
|
||||
|
||||
- name: Read draft tag
|
||||
id: draft
|
||||
run: |
|
||||
DRAFT_TAG=$(cat draft_tag.txt)
|
||||
echo $DRAFT_TAG
|
||||
echo "draft_tag=$DRAFT_TAG" >> $GITHUB_OUTPUT
|
||||
echo ${{ github.event.release.id }}
|
||||
|
||||
docker_publish:
|
||||
uses: ./.github/workflows/docker.yml
|
||||
@@ -45,11 +37,27 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get draft release tag
|
||||
if: ${{ github.event.release.draft == true }}
|
||||
id: draft_tag
|
||||
run: |
|
||||
TAG=$(gh release view ${{ github.event.release.id }} --json tagName -q ".tagName")
|
||||
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
|
||||
|
||||
|
||||
# - name: Publish GitHub Release
|
||||
# if: ${{ github.event.release.draft == true }}
|
||||
# env:
|
||||
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# # gh release edit v${{ github.ref_name }} --draft=false
|
||||
# run: |
|
||||
# gh release edit ${{ github.event.release.id }} --draft=false
|
||||
- name: Publish GitHub Release
|
||||
if: ${{ github.event.release.draft == true }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release edit v${{ github.ref_name }} --draft=false
|
||||
gh release edit $RELEASE_TAG --draft=false
|
||||
|
||||
discord_notification:
|
||||
needs: docker_publish
|
||||
|
||||
+2
-2
@@ -7,10 +7,10 @@
|
||||
},
|
||||
"git": {
|
||||
"commit": true,
|
||||
"commitMessage": "chore: release v${version}",
|
||||
"commitMessage": "chore: release ${version}",
|
||||
"requireCleanWorkingDir": true,
|
||||
"tag": true,
|
||||
"tagName": "v${version}",
|
||||
"tagName": "${version}",
|
||||
"push": true
|
||||
},
|
||||
"plugins": {
|
||||
|
||||
+1
-1
@@ -31,5 +31,5 @@ keywords:
|
||||
- web-ui
|
||||
- agent
|
||||
license: Apache-2.0
|
||||
version: 1.4.39
|
||||
version: 1.4.43
|
||||
date-released: '2026-03-02'
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "portabase",
|
||||
"version": "1.4.39",
|
||||
"version": "1.4.43",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --turbopack -p 8887",
|
||||
|
||||
Reference in New Issue
Block a user