Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add release and test-release workflow #61

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading