Skip to content

Commit 1ffb5c9

Browse files
committed
Automate release creation (take 2)
1 parent 0b60e96 commit 1ffb5c9

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: read
10+
id-token: write
11+
812
jobs:
9-
build:
13+
release:
1014
runs-on: ubuntu-latest
1115
steps:
1216
- uses: actions/checkout@v3
@@ -37,12 +41,6 @@ jobs:
3741
publish:
3842
runs-on: ubuntu-latest
3943
steps:
40-
- uses: grafana/shared-workflows/actions/get-vault-secrets@main
41-
with:
42-
vault_instance: dev
43-
# Secrets placed in the ci/repo/grafana/otel-profiling-python/ path in Vault
44-
repo_secrets: |
45-
PYPI_API_TOKEN=publishing:pypi_api_key
4644
- uses: robinraju/release-downloader@v1.4
4745
with:
4846
tag: ${{ github.event.release.tag_name }}
@@ -51,6 +49,12 @@ jobs:
5149
zipBall: false
5250
out-file-path: "dist"
5351
token: ${{ secrets.GITHUB_TOKEN }}
52+
- uses: grafana/shared-workflows/actions/get-vault-secrets@main
53+
with:
54+
vault_instance: dev
55+
# Secrets placed in the ci/repo/grafana/otel-profiling-python/ path in Vault
56+
repo_secrets: |
57+
PYPI_API_TOKEN=publishing:pypi_api_key
5458
- name: Publish a Python distribution to PyPI
5559
uses: pypa/gh-action-pypi-publish@release/v1
5660
with:

0 commit comments

Comments
 (0)