-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (51 loc) · 1.63 KB
/
package-sdks.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
52
53
54
55
56
57
58
name: Package SDKs
on:
workflow_call:
inputs:
sdk:
description: "SDK(s) to build"
type: string
required: true
tag:
description: "Tag to use for SDK(s)"
type: string
required: false
permissions:
contents: write
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
MAVEN_PUBLISH_REGISTRY_URL: ${{ secrets.MAVEN_PUBLISH_REGISTRY_URL }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
NPM_API_KEY: ${{ secrets.NPM_API_KEY }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}
PYPI_API_KEY: ${{ secrets.PYPI_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.4"
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.9.5 sh
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.FLIPT_RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.FLIPT_RELEASE_BOT_APP_PEM }}
installation_id: ${{ secrets.FLIPT_RELEASE_BOT_INSTALLATION_ID }}
- name: Build Individual SDK(s)
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: |
dagger run go run ./build --sdks=${{ inputs.sdk }} --push=true --tag=${{ inputs.tag }}