Skip to content

Commit 42544c5

Browse files
committed
Admin: Add CI release workflow
1 parent ec575d7 commit 42544c5

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*.*
7+
8+
jobs:
9+
release-localstack-snapshot-job:
10+
runs-on: ubuntu-latest
11+
name: Release localstack-snapshot
12+
permissions:
13+
contents: write
14+
id-token: write
15+
environment:
16+
name: pypi
17+
url: https://pypi.org/p/localstack-snapshot
18+
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v5
22+
23+
- name: Verify and build Python distribution
24+
run: make install lint test dist
25+
26+
- name: Publish to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $(VENV_ACTIVATE): pyproject.toml
1212
$(VENV_RUN); pip install -e .[dev]
1313
touch $(VENV_DIR)/bin/activate
1414

15-
install: venv
15+
install: $(VENV_ACTIVATE)
1616

1717
clean:
1818
rm -rf .venv

0 commit comments

Comments
 (0)