scripts: Add tests for release scripts

This commit is contained in:
Marek Siarkowicz
2022-04-24 15:23:45 +02:00
parent b57881a164
commit c76a010b48
2 changed files with 38 additions and 6 deletions

24
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Release
on: [push, pull_request]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.16.15"
- run: |
git config --global user.email "github-action@etcd.io"
git config --global user.name "Github Action"
gpg --batch --gen-key <<EOF
%no-protection
Key-Type: 1
Key-Length: 2048
Subkey-Type: 1
Subkey-Length: 2048
Name-Real: Github Action
Name-Email: github-action@etcd.io
Expire-Date: 0
EOF
BRANCH=release-3.5 ./scripts/release --no-upload --no-docker-push 3.5.99