Skip to content

Commit

Permalink
Testing release tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis-chambers committed May 30, 2024
1 parent 1d9673e commit fa7f0c1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Create release

on:
push:
branches: ["main"]

permissions:
contents: write

jobs:
release:
name: Release pushed tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
tag=$(python -c "import iotdevicesimulator; print(iotdevicesimulator.__version__)")
echo $tag
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.python/*
.pytest/*
.vscode/*
.*/*
**/__pycache__/*
*.docx
Expand All @@ -12,6 +9,6 @@ config.cfg
aws-auth
*.log
*.certs

!.github/*
docs/source/*
docs/_*
docs/_*

0 comments on commit fa7f0c1

Please sign in to comment.