Compare commits

...

9 Commits
0.2.4 ... main

Author SHA1 Message Date
e14dd122e7 Merge pull request 'more bugfix' (#4) from sidiesen/test into main
All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 1m32s
CI / linter (ubuntu-latest, 3.9) (push) Successful in 1m37s
CI / tests_linux (ubuntu-latest, 3.9) (push) Successful in 34s
PythonTestProject.Build Started by gitearobot at a specific date
Reviewed-on: #4
2024-11-13 08:31:00 -08:00
d5344f95c1 more bugfix
All checks were successful
CI / linter (ubuntu-latest, 3.9) (pull_request) Successful in 39s
SonarQube Scan / SonarQube Trigger (pull_request) Successful in 1m5s
CI / tests_linux (ubuntu-latest, 3.9) (pull_request) Successful in 32s
Upload Python Package / Create Release (push) Successful in 39s
Upload Python Package / deploy (push) Successful in 34s
2024-11-13 17:19:59 +01:00
48c2e3bc3f Merge pull request 'bugfix' (#3) from sidiesen/test into main
All checks were successful
CI / linter (ubuntu-latest, 3.9) (push) Successful in 36s
Rename the project from template / rename-project (push) Successful in 29s
SonarQube Scan / SonarQube Trigger (push) Successful in 47s
CI / tests_linux (ubuntu-latest, 3.9) (push) Successful in 34s
Reviewed-on: #3
2024-11-13 08:12:06 -08:00
1b84f5064c bugfix
Some checks failed
CI / linter (ubuntu-latest, 3.9) (pull_request) Successful in 34s
SonarQube Scan / SonarQube Trigger (pull_request) Successful in 50s
CI / tests_linux (ubuntu-latest, 3.9) (pull_request) Successful in 38s
Upload Python Package / Create Release (push) Successful in 31s
Rename the project from template / rename-project (push) Successful in 25s
Upload Python Package / deploy (push) Failing after 43s
2024-11-13 17:06:08 +01:00
5172bdabaf Merge pull request 'add version amtch check' (#2) from sidiesen/test into main
All checks were successful
CI / linter (ubuntu-latest, 3.9) (push) Successful in 34s
Rename the project from template / rename-project (push) Successful in 25s
SonarQube Scan / SonarQube Trigger (push) Successful in 1m6s
CI / tests_linux (ubuntu-latest, 3.9) (push) Successful in 31s
Reviewed-on: #2
2024-11-13 07:58:12 -08:00
08860faa46 add version amtch check
Some checks failed
CI / linter (ubuntu-latest, 3.9) (pull_request) Successful in 42s
SonarQube Scan / SonarQube Trigger (pull_request) Successful in 58s
CI / tests_linux (ubuntu-latest, 3.9) (pull_request) Successful in 33s
Upload Python Package / Create Release (push) Successful in 29s
Rename the project from template / rename-project (push) Successful in 26s
Upload Python Package / deploy (push) Failing after 30s
2024-11-13 16:54:42 +01:00
85e8e2fffd Merge pull request 'bugfixes' (#1) from sidiesen/test into main
All checks were successful
CI / linter (ubuntu-latest, 3.9) (push) Successful in 31s
Rename the project from template / rename-project (push) Successful in 28s
SonarQube Scan / SonarQube Trigger (push) Successful in 1m2s
CI / tests_linux (ubuntu-latest, 3.9) (push) Successful in 28s
Reviewed-on: #1
2024-11-13 07:36:15 -08:00
Simon
d0e18232a2 bugfixes
Some checks failed
CI / linter (ubuntu-latest, 3.9) (pull_request) Successful in 28s
SonarQube Scan / SonarQube Trigger (pull_request) Successful in 1m0s
CI / tests_linux (ubuntu-latest, 3.9) (pull_request) Successful in 27s
Upload Python Package / Create Release (push) Successful in 29s
Rename the project from template / rename-project (push) Successful in 30s
Upload Python Package / deploy (push) Failing after 40s
2024-11-13 16:30:59 +01:00
Simon
c50b1b588b bugfixes
All checks were successful
CI / linter (ubuntu-latest, 3.9) (push) Successful in 24s
SonarQube Scan / SonarQube Trigger (push) Successful in 1m1s
CI / tests_linux (ubuntu-latest, 3.9) (push) Successful in 26s
Upload Python Package / Create Release (push) Successful in 26s
Rename the project from template / rename-project (push) Successful in 28s
Upload Python Package / deploy (push) Successful in 30s
2024-11-13 16:06:57 +01:00
3 changed files with 14 additions and 47 deletions

View File

@ -6,7 +6,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@ -43,12 +43,21 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Check version match
run: |
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')
if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then
echo "Version matches successfully!"
else
echo "Version must match!"
exit -1
fi
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_USERNAME: gitearobot
TWINE_PASSWORD: ${{ secrets.PACKAGE_GITEA_PAT }}
run: |
REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}')
python setup.py sdist bdist_wheel
twine upload --repository-url -u gitearobot -p ${{ secrets.PACKAGE_GITEA_PAT }} https://git.disi.dev/api/packages/$REPOSITORY_OWNER/pypi dist/*
twine upload --repository-url https://git.disi.dev/api/packages/$REPOSITORY_OWNER/pypi dist/*

View File

@ -1,42 +0,0 @@
name: Rename the project from template
on: [push]
permissions: write-all
jobs:
rename-project:
if: ${{ !endsWith (github.repository, 'Templates/Python') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# by default, it uses a depth of 1
# this fetches all history so that we can read each commit
fetch-depth: 0
ref: ${{ gitea.head_ref }}
- run: echo "REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
shell: bash
- run: echo "REPOSITORY_URLNAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}')" >> $GITHUB_ENV
shell: bash
- run: echo "REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}')" >> $GITHUB_ENV
shell: bash
- name: Is this still a template
id: is_template
run: echo "::set-output name=is_template::$(ls .gitea/template.yml &> /dev/null && echo true || echo false)"
- name: Rename the project
if: steps.is_template.outputs.is_template == 'true'
run: |
echo "Renaming the project with -a(author) ${{ env.REPOSITORY_OWNER }} -n(name) ${{ env.REPOSITORY_NAME }} -u(urlname) ${{ env.REPOSITORY_URLNAME }}"
.gitea/rename_project.sh -a ${{ env.REPOSITORY_OWNER }} -n ${{ env.REPOSITORY_NAME }} -u ${{ env.REPOSITORY_URLNAME }} -d "Awesome ${{ env.REPOSITORY_NAME }} created by ${{ env.REPOSITORY_OWNER }}"
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "✅ Ready to clone and code."
# commit_options: '--amend --no-edit'
push_options: --force

View File

@ -1 +1 @@
0.1.0
0.2.9