From 69e1b9a236554fe759aa07ca9e4a2abf039eed6b Mon Sep 17 00:00:00 2001 From: June Date: Tue, 11 Jun 2024 01:46:59 +0200 Subject: [PATCH 1/2] TEST --- .forgejo/workflows/release.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .forgejo/workflows/release.yaml diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml new file mode 100644 index 0000000..fac9be4 --- /dev/null +++ b/.forgejo/workflows/release.yaml @@ -0,0 +1,24 @@ +on: + push: + tags: + - "v*" + +jobs: + release: + runs-on: docker + steps: + - uses: actions/checkout@v4 + - name: Get release notes from tag + run: echo "RELEASE_NOTES=$(git tag -l --format='%(contents)' ${{ env.GITHUB_REF_NAME }})" >> "$GITHUB_ENV" + - name: Install Hatch + uses: https://github.com/pypa/hatch@install + - name: Build project + run: hatch build + - name: Create a Forgejo release + uses: actions/forgejo-release@v2 + with: + direction: upload + url: https://git.hamburg.ccc.de + release-dir: dist + release-notes: ${{ env.RELEASE_NOTES }} + token: ${{ env.GITHUB_TOKEN }} From d8b0e80487891a5540d86b62c701a02b1b0c180e Mon Sep 17 00:00:00 2001 From: June Date: Sat, 22 Jun 2024 18:03:36 +0200 Subject: [PATCH 2/2] ci: switch CI from Forgejo Actions to Woodpecker CI --- .forgejo/workflows/style.yaml | 23 ----------------------- .woodpecker/style.yaml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 23 deletions(-) delete mode 100644 .forgejo/workflows/style.yaml create mode 100644 .woodpecker/style.yaml diff --git a/.forgejo/workflows/style.yaml b/.forgejo/workflows/style.yaml deleted file mode 100644 index b98d044..0000000 --- a/.forgejo/workflows/style.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# Links & Resources: -# - https://hatch.pypa.io/latest/install/#github-actions -# - https://docs.astral.sh/ruff/integrations/#github-actions -# - https://black.readthedocs.io/en/stable/integrations/github_actions.html -on: push - -jobs: - ruff: - runs-on: docker - steps: - - uses: actions/checkout@v4 - - name: Install Hatch - uses: https://github.com/pypa/hatch@install - - name: Run Ruff - run: hatch run lint:ruff check --output-format=github . - black: - runs-on: docker - steps: - - uses: actions/checkout@v4 - - name: Install Hatch - uses: https://github.com/pypa/hatch@install - - name: Run Black - run: hatch run lint:black --check --diff . diff --git a/.woodpecker/style.yaml b/.woodpecker/style.yaml new file mode 100644 index 0000000..a5abd2c --- /dev/null +++ b/.woodpecker/style.yaml @@ -0,0 +1,18 @@ +# Links & Resources +# - https://hub.docker.com/_/python +# - https://docs.astral.sh/ruff/installation/ +# - https://black.readthedocs.io/en/stable/usage_and_configuration/black_docker_image.html + +when: + event: [push, pull_request] + +steps: + - name: ruff + image: python + commands: + - pip install ruff + - ruff check . + - name: black + image: pyfound/black + commands: + - black --check --diff .