mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-05 13:29:11 +08:00
80b7bb44f7
#### What this PR does / why we need it? DEPRECATED: --skip-publish was deprecated in favor of --skip=publish, check https://goreleaser.com/deprecations#-skip for more details #### Summary of your change #### Please indicate you've done the following: - [ ] Made sure tests are passing and test coverage is added if needed. - [ ] Made sure commit message follow the rule of [Conventional Commits specification](https://www.conventionalcommits.org/). - [ ] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.
66 lines
2.1 KiB
YAML
66 lines
2.1 KiB
YAML
on:
|
||
push:
|
||
# Sequence of patterns matched against refs/tags
|
||
tags:
|
||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||
|
||
name: Create Release And Upload assets
|
||
|
||
jobs:
|
||
create-release:
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout Code
|
||
uses: actions/checkout@v4
|
||
- name: Setup Node
|
||
uses: actions/setup-node@v4
|
||
with:
|
||
node-version: '20.2'
|
||
- name: Build Web
|
||
run: |
|
||
cd frontend && npm install && npm run build:pro
|
||
env:
|
||
NODE_OPTIONS: --max-old-space-size=8192
|
||
- name: Setup Go
|
||
uses: actions/setup-go@v5
|
||
with:
|
||
go-version: '1.22'
|
||
- name: Build Release
|
||
uses: goreleaser/goreleaser-action@v6
|
||
with:
|
||
distribution: goreleaser
|
||
version: latest
|
||
args: release --skip=publish --clean
|
||
- name: Upload Assets
|
||
uses: softprops/action-gh-release@v1
|
||
if: startsWith(github.ref, 'refs/tags/')
|
||
with:
|
||
draft: true
|
||
body: |
|
||
# 一、安装和升级
|
||
|
||
## 1.1 一键安装
|
||
```sh
|
||
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
|
||
```
|
||
|
||
## 1.2 在线升级
|
||
|
||
登录 1Panel Web 控制台,在页面右下角点击 **【检查更新】** 进行在线升级。
|
||
|
||
>更多信息请查阅在线文档:https://1panel.cn/docs/
|
||
|
||
# 二、更新日志
|
||
|
||
files: |
|
||
dist/*.tar.gz
|
||
dist/checksums.txt
|
||
- name: Setup OSSUTIL
|
||
uses: yizhoumo/setup-ossutil@v1
|
||
with:
|
||
endpoint: ${{ secrets.OSS_ENDPOINT }}
|
||
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
|
||
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
|
||
ossutil-version: '1.7.14'
|
||
- name: Upload Assets to OSS
|
||
run: ossutil cp -r dist/ oss://resource-fit2cloud-com/1panel/package/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --only-current-dir --force |