Skip to content
Merged
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
22 changes: 8 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Test GH_TOKEN permissions
run: |
curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}
shell: bash
- name: Set git user for hawkdeploy
run: |
git config user.name "${{ secrets.GH_DEPLOY_USER }}"
git config user.email "${{ secrets.GH_DEPLOY_EMAIL }}"
- name: Set up git for pushing
run: |
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Show git user and remote
run: |
git config --get user.name
Expand Down Expand Up @@ -82,11 +74,13 @@ jobs:
fetch-depth: 0
- name: Set git user for hawkdeploy
run: |
git config user.name "${{ secrets.GH_DEPLOY_USER }}"
git config user.email "${{ secrets.GH_DEPLOY_EMAIL }}"
- name: Set up git for pushing
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Install dependencies
run: |
git remote set-url origin https://${{ secrets.GH_DEPLOY_USER }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Bump patch version with bumpver
run: bumpver update --patch --commit
- name: Push version bump commit
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Prepare Release

on:
workflow_dispatch:

permissions:
contents: write

jobs:
bump-minor-version:
name: Bump Minor Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Set git user for github-actions
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Bump minor version with bumpver
run: bumpver update --minor --commit
- name: Push version bump commit
run: |
git push origin HEAD:main
13 changes: 2 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Release

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: write
Expand Down Expand Up @@ -51,11 +50,7 @@ jobs:
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build bumpver
- name: Set up git for pushing
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
pip install build
- name: Build package
run: |
python -m build
Expand All @@ -72,10 +67,6 @@ jobs:
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up git for pushing
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down