mirror of https://code.forgejo.org/forgejo/runner
skip nightly publish
parent
c7f8919470
commit
c9318f08e2
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue