diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml deleted file mode 100644 index 14f05fe12c26..000000000000 --- a/.github/workflows/build-and-publish.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Build And Publish (OSS + 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: '24.11.1' - - - 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.25' - cache-dependency-path: | - core/go.sum - agent/go.sum - - - 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 OSSUTIL - uses: yizhoumo/setup-ossutil@v2 - 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.18' - - - name: Upload Assets to OSS - run: | - ossutil cp -r dist/ oss://resource-fit2cloud-com/1panel/package/v2/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --only-current-dir --force - - - 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/v2/stable/${{ github.ref_name }}/release/ --include "*.tar.gz" --include "checksums.txt" --progress diff --git a/.goreleaser.yaml b/.goreleaser.yaml deleted file mode 100644 index 3ef2ce76a217..000000000000 --- a/.goreleaser.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=2 sw=2 tw=0 fo=jcroql -version: 2 - -before: - hooks: - # - export NODE_OPTIONS="--max-old-space-size=8192" - # - make build_web - - chmod +x ./ci/script.sh - - ./ci/script.sh - - sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl - -builds: - - id: agent - dir: agent - main: cmd/server/main.go - binary: 1panel-agent - flags: - - -tags=xpack - - -trimpath - ldflags: - - -w -s - env: - - CGO_ENABLED=0 - goos: - - linux - goarm: - - 7 - goarch: - - amd64 - - arm64 - - arm - - ppc64le - - s390x - - riscv64 - - - id: core - dir: core - main: cmd/server/main.go - binary: 1panel-core - flags: - - -tags=xpack - - -trimpath - ldflags: - - -w -s - env: - - CGO_ENABLED=0 - goos: - - linux - goarm: - - 7 - goarch: - - amd64 - - arm64 - - arm - - ppc64le - - s390x - - riscv64 - -archives: - - formats: [ 'tar.gz' ] - ids: [core, agent] - name_template: "1panel-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}" - wrap_in_directory: true - files: - - 1pctl - - install.sh - - 1panel-core.service - - 1panel-agent.service - - initscript/* - - lang/* - - GeoIP.mmdb - -checksum: - name_template: 'checksums.txt' - -changelog: - sort: asc - filters: - exclude: - - "^docs:" - - "^test:" diff --git a/ci/script.sh b/ci/script.sh deleted file mode 100755 index 556002a653e5..000000000000 --- a/ci/script.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/bash - -set -e - -command -v wget >/dev/null || { - echo "wget not found, please install it and try again." - exit 1 -} - -if [ ! -f "1pctl" ]; then - wget https://github.com/1Panel-dev/installer/raw/v2/1pctl -fi - -if [ ! -f "install.sh" ]; then - wget https://github.com/1Panel-dev/installer/raw/v2/install.sh -fi - -if [ ! -d "initscript" ]; then - wget https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-core.service - wget https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-agent.service - mkdir -p initscript && cd initscript - for file in 1panel-core.init 1panel-agent.init 1panel-core.openrc 1panel-agent.openrc 1panel-core.procd 1panel-agent.procd 1panel-core.service 1panel-agent.service; do - wget -q https://github.com/1Panel-dev/installer/raw/v2/initscript/$file - done - cd .. -fi - -if [ ! -d "lang" ]; then - mkdir -p lang && cd lang - for lang in en fa pt-BR ru zh; do - wget -q https://github.com/1Panel-dev/installer/raw/v2/lang/$lang.sh - done - cd .. -fi - -if [ ! -f "GeoIP.mmdb" ]; then - wget https://resource.fit2cloud.com/1panel/package/v2/geo/GeoIP.mmdb -fi - -chmod 755 1pctl install.sh