From c9318f08e2a62769aef24c9a3bc83179fb25c9bd Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sun, 26 Feb 2023 15:39:22 +0800 Subject: [PATCH] skip nightly publish --- .gitea/workflows/release-nightly.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/release-nightly.yml b/.gitea/workflows/release-nightly.yml index 15fa66a..4b6d0aa 100644 --- a/.gitea/workflows/release-nightly.yml +++ b/.gitea/workflows/release-nightly.yml @@ -15,23 +15,21 @@ jobs: - uses: actions/setup-go@v3 with: go-version: '>=1.20.1' - - name: - run: | - mkdir -p ~/.aws - echo "[default]" > ~/.aws/credentials - echo "aws_access_key_id = ${{ secrets.AWS_ACCESS_KEY_ID }}" >> ~/.aws/credentials - echo "aws_secret_access_key = ${{ secrets.AWS_SECRET_ACCESS_KEY }}" >> ~/.aws/credentials - - name: goreleaser uses: https://github.com/goreleaser/goreleaser-action@v4 with: distribution: goreleaser-pro version: latest - args: release --nightly --clean + args: release --nightly --skip-publish env: GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} - S3_BUCKET: ${{ secrets.S3_BUCKET }} - S3_REGION: ${{ secrets.AWS_REGION }} + - name: publish to s3 + run: | + apt update -y && apt install -y python python3-pip + pip install awscli + rm dist/artifacts.json dist/metadata.json + aws s3 sync dist/ s3://${{ secrets.S3_BUCKET }}/act_runner/main/ + env: AWS_REGION: ${{ secrets.AWS_REGION }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}