Skip to content

Commit c3d02b2

Browse files
authored
Merge pull request #45 from reecetech/bring-actions-up-to-date
Bring actions up to date
2 parents fd82919 + 1e1de6b commit c3d02b2

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

.github/workflows/test-build-release.yaml

+12-17
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Run tests
1919
shell: bash
@@ -23,18 +23,21 @@ jobs:
2323
2424
build:
2525
runs-on: ubuntu-latest
26+
outputs:
27+
version: "${{ steps.version.outputs.version }}"
2628
steps:
2729
- name: Checkout code
28-
uses: actions/checkout@v2
30+
uses: actions/checkout@v4
2931

3032
- name: Get next version
31-
uses: reecetech/version-increment@2022.2.5
33+
uses: reecetech/version-increment@2024.10.1
3234
id: version
3335
with:
3436
scheme: semver
37+
pep440: true
3538

3639
- name: Setup Python
37-
uses: actions/setup-python@v3
40+
uses: actions/setup-python@v5
3841
with:
3942
python-version: '3.10' # Should match Pipfile / "python_version"
4043

@@ -47,30 +50,22 @@ jobs:
4750
pip install "setuptools>=62.2.0"
4851
python3 setup.py sdist
4952
50-
- uses: actions/upload-artifact@v3
53+
- uses: actions/upload-artifact@v4
5154
with:
5255
name: dist
5356
path: dist/
5457
retention-days: 3
58+
include-hidden-files: true
5559

5660
release:
57-
if: ${{ github.ref == 'refs/heads/master' }}
61+
if: ${{ github.ref_name == github.event.repository.default_branch }}
5862
needs:
5963
- test
6064
- build
6165
runs-on: ubuntu-latest
6266
steps:
63-
- name: Checkout code
64-
uses: actions/checkout@v2
65-
66-
- name: Get next version
67-
uses: reecetech/[email protected]
68-
id: version
69-
with:
70-
scheme: semver
71-
7267
- name: Download artifact
73-
uses: actions/download-artifact@v3
68+
uses: actions/download-artifact@v4
7469
with:
7570
name: dist # the name of the artefact from the `build` step
7671
path: dist/
@@ -81,7 +76,7 @@ jobs:
8176
repo_token: "${{ secrets.GITHUB_TOKEN }}"
8277
draft: false
8378
prerelease: false
84-
automatic_release_tag: "${{ steps.version.outputs.version }}"
79+
automatic_release_tag: "${{ needs.build.outputs.version }}"
8580

8681
- name: Release version on PyPi
8782
uses: pypa/gh-action-pypi-publish@release/v1

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,10 @@ Requirements: Docker 19.03.2 or newer and Docker Compose 1.24.1 or newer.
307307
Release History
308308
---------------
309309

310+
Version 1.12.2
311+
312+
- Update to latest GitHub actions
313+
310314
Version 1.12.1
311315

312316
- End support for Python 3.7

0 commit comments

Comments
 (0)