Skip to content

Commit 048121a

Browse files
chore: Update workflows
1 parent e41e74d commit 048121a

6 files changed

+51
-6
lines changed

Diff for: .github/workflows/add-labels-for-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
on: pull_request
21
name: General PR Handling for 1Panel
2+
on: pull_request
33
permissions:
44
pull-requests: write
55
jobs:

Diff for: .github/workflows/build-publish-to-oss.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
name: Create Release And Upload assets
12
on:
23
push:
34
tags:
45
- 'v*'
5-
name: Create Release And Upload assets
66
jobs:
77
create-release:
88
runs-on: ubuntu-latest
@@ -44,4 +44,4 @@ jobs:
4444
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
4545
ossutil-version: '1.7.18'
4646
- name: Upload Assets to OSS
47-
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
47+
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

Diff for: .github/workflows/build-publish-to-r2.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Create Release And Upload Cloudflare R2
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
create-release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Code
11+
uses: actions/checkout@v4
12+
- name: Setup Node
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.2'
16+
- name: Build Web
17+
run: |
18+
cd frontend && npm install && npm run build:pro
19+
env:
20+
NODE_OPTIONS: --max-old-space-size=8192
21+
- name: Setup Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: '1.23'
25+
- name: Build Release
26+
uses: goreleaser/goreleaser-action@v6
27+
with:
28+
distribution: goreleaser
29+
version: '~> v2'
30+
args: release --skip=publish --clean
31+
- name: Upload Assets
32+
uses: softprops/action-gh-release@v1
33+
if: startsWith(github.ref, 'refs/tags/')
34+
with:
35+
draft: true
36+
files: |
37+
dist/*.tar.gz
38+
dist/checksums.txt
39+
- name: Setup Rclone
40+
uses: AnimMouse/setup-rclone@v1
41+
with:
42+
rclone_config: ${{ secrets.RCLONE_CONFIG }}
43+
- name: Upload to Cloudflare R2
44+
run: |
45+
rclone copy dist/ cloudflare_r2:package/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --progress

Diff for: .github/workflows/issue-translator.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'issue-translator'
1+
name: Issue Translator
22
on:
33
issue_comment:
44
types: [created]

Diff for: .github/workflows/sonarcloud-scan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: SonarCloud Scan
22
on:
33
push:
44
branches:

Diff for: .github/workflows/sync2gitee.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: sync2gitee
1+
name: Synchronize to Gitee
22
on: [push]
33
jobs:
44
repo-sync:

0 commit comments

Comments
 (0)