-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.21 KB
/
release.yml
File metadata and controls
52 lines (44 loc) · 1.21 KB
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
name: 🎉 Release
on:
workflow_call:
jobs:
release:
name: Release
uses: ./.github/workflows/reusable-build.yml
with:
goreleaser_config: goreleaser.yml
goreleaser_options: "--clean"
secrets: inherit
permissions:
id-token: write # For cosign
packages: write # For GHCR
contents: write # To upload archives as release assets
publish:
name: Publish PyPi
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
- name: Install Fern
run: npm install -g fern-api
- name: Generate Fern
run: fern generate --group pypi --version ${{ github.ref_name }}
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
permissions:
id-token: write # For cosign
packages: write # For GHCR
contents: write # To upload archives as release assets
upload-to-s3:
name: Upload to S3
needs: [release]
uses: ./.github/workflows/upload-to-s3.yml
with:
version: ${{ github.ref_name }}
secrets: inherit
permissions:
id-token: write
contents: read