Skip to content

Commit

Permalink
Merge pull request #61 from PCain02/auto-release
Browse files Browse the repository at this point in the history
Feat: add release and test-release workflow
  • Loading branch information
gkapfham authored Dec 5, 2024
2 parents 4c907f0 + 32adef5 commit 069b45c
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Release workflow

name: Create Release

# Use more columns for terminal output
env:
COLUMNS: 120
PYTHONIOENCODING: utf8

# trigger the release of the
# execexam package to GitHub
# with any tag starting with 'v'
on:
push:
tags:
- 'v*'

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create Release with Auto-Generated Notes
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: "${{ github.ref_name }}"
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 32 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Test Release workflow

name: Create Test Release

# Use more columns for terminal output
env:
COLUMNS: 120
PYTHONIOENCODING: utf8

# trigger the test release of the
# execexam package to GitHub
# with any tag starting with 'r'
on:
push:
tags:
- 't*'

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create Release with Auto-Generated Notes
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: "${{ github.ref_name }}"
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "execexam"
version = "0.3.2"
description = "ExecExam runs executable examinations, providing feedback and assistance!"
authors = ["Hemani Alaparthi <[email protected]>","Gregory M. Kapfhammer <[email protected]>"]
authors = ["Hemani Alaparthi <[email protected]>","Pallas-Athena Cain <[email protected]>","Gregory M. Kapfhammer <[email protected]>"]
readme = "README.md"

[tool.poetry.scripts]
Expand Down

0 comments on commit 069b45c

Please sign in to comment.