From 26e46bdf53b21caef5c877eea78a6ea7b298bf39 Mon Sep 17 00:00:00 2001 From: nite07 Date: Wed, 20 Nov 2024 22:59:03 +0800 Subject: [PATCH] workflow --- .github/workflows/docker.yml | 8 -------- .github/workflows/release.yml | 4 +++- .goreleaser.yaml | 3 +++ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index b013588..b1490d1 100755 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,7 +18,6 @@ jobs: with: images: | nite07/live-streamer - ghcr.io/nitezs/live-streamer tags: | type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} @@ -36,13 +35,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Login to GHCR - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push uses: docker/build-push-action@v5 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3560ccb..77d6938 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 + with: + go-version: "stable" - name: Install UPX uses: crazy-max/ghaction-upx@v3 @@ -30,4 +32,4 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITEA_TOKEN: ${{ secrets.TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9bc5fb3..fc8d07e 100755 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -29,3 +29,6 @@ release: upx: - enabled: true compress: best +gitea_urls: + api: https://git.nite07.com/api/v1 + download: https://git.nite07.com