-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.37 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17-ea
- name: Install protoc-gen-rust
uses: actions-rs/cargo@v1
with:
command: install
args: protobuf-codegen
- name: Checkout swift-protobuf
uses: actions/checkout@v2
with:
repository: apple/swift-protobuf
path: ./swift-protobuf
- name: Install protoc-gen-swift
working-directory: ./swift-protobuf
run: |
swift build -c release
mkdir -p ${HOME}/.local/bin
cp .build/release/protoc-gen-swift ${HOME}/.local/bin
- name: Checkout repository
uses: actions/checkout@v2
- name: Publish release
uses: eskatos/gradle-command-action@v1
with:
arguments: publish --no-daemon
env:
SIGNING_PGP_KEY: ${{ secrets.SIGNING_PGP_KEY }}
SIGNING_PGP_PASSWORD: ${{ secrets.SIGNING_PGP_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
S7S_BUILD_PROTO_RUST: 1
S7S_BUILD_PROTO_SWIFT: 1
S7S_BUILD_PROTO_CPP: 1
S7S_BUILD_PROTO_PYTHON: 1