-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (44 loc) · 1.03 KB
/
release.yaml
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
---
name: release
on:
push:
branches: [main]
tags: ["*"]
release:
types: [published]
workflow_dispatch:
permissions:
attestations: write
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: setup ssh
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.YAAK_IDL_REPO_SSH_KEY }}
- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
fetch-depth: 0
- name: build and inspect
uses: hynek/[email protected]
with:
attest-build-provenance-github: "true"
release:
environment: release
if: github.event.action == 'published'
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true