mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c70d8aac7 | ||
|
|
ba1dbcc9f3 | ||
|
|
8e4e41ca07 | ||
|
|
a8eb3f5f1a | ||
|
|
73f7ac057c | ||
|
|
d359d53fb7 | ||
|
|
ba2fc55188 | ||
|
|
a6896c9b50 |
@@ -37,13 +37,10 @@ jobs:
|
|||||||
- run: git config --global user.name 'github-actions[bot]'
|
- run: git config --global user.name 'github-actions[bot]'
|
||||||
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
|
||||||
- name: Fetch tags
|
- name: Increment version and push
|
||||||
run: git fetch --tags
|
|
||||||
|
|
||||||
- name: Run release-it
|
|
||||||
id: release_step
|
id: release_step
|
||||||
run: |
|
run: |
|
||||||
git pull origin main
|
git pull origin main
|
||||||
pnpm exec release-it --ci
|
pnpm exec release-it --ci --no-github
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
name: Publish Docker image for release
|
name: Publish Docker Image & Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
|
||||||
types: [ created ]
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*.*.*"
|
- "*.*.*"
|
||||||
@@ -14,44 +12,57 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
log-draft-tag:
|
# docker_publish:
|
||||||
runs-on: ubuntu-latest
|
# uses: ./.github/workflows/docker.yml
|
||||||
steps:
|
# with:
|
||||||
- name: Read draft tag
|
# add_latest: true
|
||||||
run: |
|
# secrets:
|
||||||
echo ${{ github.event.release.tag_name }}
|
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME_2 }}
|
||||||
|
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD_2 }}
|
||||||
|
|
||||||
docker_publish:
|
|
||||||
uses: ./.github/workflows/docker.yml
|
|
||||||
with:
|
|
||||||
add_latest: true
|
|
||||||
secrets:
|
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME_2 }}
|
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD_2 }}
|
|
||||||
publish_release:
|
publish_release:
|
||||||
needs: docker_publish
|
# needs: docker_publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/create-github-app-token@v1
|
||||||
uses: actions/checkout@v4
|
id: app-token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
ref: ${{ github.base_ref }}
|
||||||
|
|
||||||
- name: Publish GitHub Release
|
- uses: pnpm/action-setup@v4
|
||||||
if: ${{ github.event.release.draft == true }}
|
|
||||||
env:
|
- uses: actions/setup-node@v4
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
with:
|
||||||
# gh release edit v${{ github.ref_name }} --draft=false
|
node-version: "lts/*"
|
||||||
|
cache: "pnpm"
|
||||||
|
|
||||||
|
- run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
- run: git config --global user.name 'github-actions[bot]'
|
||||||
|
- run: git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
|
||||||
|
- name: Publish GitHub Release with release-it
|
||||||
run: |
|
run: |
|
||||||
gh release edit ${{ github.event.release.tag_name }} --draft=false
|
pnpm exec release-it ${{ github.ref_name }} --ci --no-version --no-npm
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
discord_notification:
|
# discord_notification:
|
||||||
needs: docker_publish
|
# needs: docker_publish
|
||||||
uses: ./.github/workflows/discord.yml
|
# uses: ./.github/workflows/discord.yml
|
||||||
with:
|
# with:
|
||||||
discord_title: "New Release: v${{ github.ref_name }}"
|
# discord_title: "New Release: v${{ github.ref_name }}"
|
||||||
discord_color: 3066993
|
# discord_color: 3066993
|
||||||
discord_footer: "Portabase"
|
# discord_footer: "Portabase"
|
||||||
secrets:
|
# secrets:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
+2
-2
@@ -7,10 +7,10 @@
|
|||||||
},
|
},
|
||||||
"git": {
|
"git": {
|
||||||
"commit": true,
|
"commit": true,
|
||||||
"commitMessage": "chore: release v${version}",
|
"commitMessage": "chore: release ${version}",
|
||||||
"requireCleanWorkingDir": true,
|
"requireCleanWorkingDir": true,
|
||||||
"tag": true,
|
"tag": true,
|
||||||
"tagName": "v${version}",
|
"tagName": "${version}",
|
||||||
"push": true
|
"push": true
|
||||||
},
|
},
|
||||||
"plugins": {
|
"plugins": {
|
||||||
|
|||||||
+1
-1
@@ -31,5 +31,5 @@ keywords:
|
|||||||
- web-ui
|
- web-ui
|
||||||
- agent
|
- agent
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
version: 1.4.41
|
version: 1.4.45
|
||||||
date-released: '2026-03-02'
|
date-released: '2026-03-02'
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "portabase",
|
"name": "portabase",
|
||||||
"version": "1.4.41",
|
"version": "1.4.45",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev --turbopack -p 8887",
|
"dev": "next dev --turbopack -p 8887",
|
||||||
|
|||||||
Reference in New Issue
Block a user