mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
chore: Update workflows
This commit is contained in:
parent
e41e74d730
commit
048121a936
2
.github/workflows/add-labels-for-pr.yml
vendored
2
.github/workflows/add-labels-for-pr.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
on: pull_request
|
|
||||||
name: General PR Handling for 1Panel
|
name: General PR Handling for 1Panel
|
||||||
|
on: pull_request
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
jobs:
|
jobs:
|
||||||
|
2
.github/workflows/build-publish-to-oss.yml
vendored
2
.github/workflows/build-publish-to-oss.yml
vendored
@ -1,8 +1,8 @@
|
|||||||
|
name: Create Release And Upload assets
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
name: Create Release And Upload assets
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
create-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
45
.github/workflows/build-publish-to-r2.yml
vendored
Normal file
45
.github/workflows/build-publish-to-r2.yml
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
name: Create Release And Upload Cloudflare R2
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
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.23'
|
||||||
|
- name: Build Release
|
||||||
|
uses: goreleaser/goreleaser-action@v6
|
||||||
|
with:
|
||||||
|
distribution: goreleaser
|
||||||
|
version: '~> v2'
|
||||||
|
args: release --skip=publish --clean
|
||||||
|
- name: Upload Assets
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
draft: true
|
||||||
|
files: |
|
||||||
|
dist/*.tar.gz
|
||||||
|
dist/checksums.txt
|
||||||
|
- name: Setup Rclone
|
||||||
|
uses: AnimMouse/setup-rclone@v1
|
||||||
|
with:
|
||||||
|
rclone_config: ${{ secrets.RCLONE_CONFIG }}
|
||||||
|
- name: Upload to Cloudflare R2
|
||||||
|
run: |
|
||||||
|
rclone copy dist/ cloudflare_r2:package/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --progress
|
2
.github/workflows/issue-translator.yml
vendored
2
.github/workflows/issue-translator.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: 'issue-translator'
|
name: Issue Translator
|
||||||
on:
|
on:
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
2
.github/workflows/sonarcloud-scan.yml
vendored
2
.github/workflows/sonarcloud-scan.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build
|
name: SonarCloud Scan
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
2
.github/workflows/sync2gitee.yml
vendored
2
.github/workflows/sync2gitee.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: sync2gitee
|
name: Synchronize to Gitee
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
repo-sync:
|
repo-sync:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user