skip nightly publish
This commit is contained in:
parent
c7f8919470
commit
c9318f08e2
|
@ -15,23 +15,21 @@ jobs:
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.20.1'
|
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
|
- name: goreleaser
|
||||||
uses: https://github.com/goreleaser/goreleaser-action@v4
|
uses: https://github.com/goreleaser/goreleaser-action@v4
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser-pro
|
distribution: goreleaser-pro
|
||||||
version: latest
|
version: latest
|
||||||
args: release --nightly --clean
|
args: release --nightly --skip-publish
|
||||||
env:
|
env:
|
||||||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||||
S3_BUCKET: ${{ secrets.S3_BUCKET }}
|
- name: publish to s3
|
||||||
S3_REGION: ${{ secrets.AWS_REGION }}
|
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_REGION: ${{ secrets.AWS_REGION }}
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
|
|
Loading…
Reference in New Issue