update workflow, reordered to use version tags, add tag, commit to pyproject
This commit is contained in:
@@ -78,17 +78,6 @@ jobs:
|
|||||||
configuration: ".gitea/changelog-config.json"
|
configuration: ".gitea/changelog-config.json"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
- name: Build and store Docker image
|
|
||||||
if: ${{ github.event.inputs.docker_release == 'true' }}
|
|
||||||
env:
|
|
||||||
TAG: ${{ github.sha }}
|
|
||||||
run: |
|
|
||||||
REPO_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
|
|
||||||
docker buildx build \
|
|
||||||
--platform linux/amd64 \
|
|
||||||
--tag ${{ secrets.REGISTRY }}/${REPO_NAME}:latest \
|
|
||||||
--tag ${{ secrets.REGISTRY }}/${REPO_NAME}:${TAG} \
|
|
||||||
--push .
|
|
||||||
|
|
||||||
|
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
@@ -102,6 +91,15 @@ jobs:
|
|||||||
echo "EOF" >> $GITHUB_ENV
|
echo "EOF" >> $GITHUB_ENV
|
||||||
- name: Check version
|
- name: Check version
|
||||||
run: echo ${{ env.VERSION }}
|
run: echo ${{ env.VERSION }}
|
||||||
|
- name: Build and store Docker image
|
||||||
|
if: ${{ github.event.inputs.docker_release == 'true' }}
|
||||||
|
run: |
|
||||||
|
REPO_NAME=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
|
||||||
|
docker buildx build \
|
||||||
|
--platform linux/amd64 \
|
||||||
|
--tag ${{ secrets.REGISTRY }}/${REPO_NAME}:latest \
|
||||||
|
--tag ${{ secrets.REGISTRY }}/${REPO_NAME}:${{ env.VERSION }} \
|
||||||
|
--push .
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
@@ -112,7 +110,7 @@ jobs:
|
|||||||
if: ${{ github.event.inputs.github_release == 'true' }}
|
if: ${{ github.event.inputs.github_release == 'true' }}
|
||||||
uses: softprops/action-gh-release@master
|
uses: softprops/action-gh-release@master
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: v${{ env.VERSION }}
|
||||||
release_name: Release ${{ env.VERSION }}
|
release_name: Release ${{ env.VERSION }}
|
||||||
body_path: release_notes/release_notes.md
|
body_path: release_notes/release_notes.md
|
||||||
draft: false
|
draft: false
|
||||||
|
|||||||
@@ -36,12 +36,12 @@ replace = "{new_version}"
|
|||||||
regex = false
|
regex = false
|
||||||
ignore_missing_version = false
|
ignore_missing_version = false
|
||||||
ignore_missing_files = false
|
ignore_missing_files = false
|
||||||
tag = false
|
tag = true
|
||||||
sign_tags = false
|
sign_tags = false
|
||||||
tag_name = "v{new_version}"
|
tag_name = "v{new_version}"
|
||||||
tag_message = "Bump version: {current_version} → {new_version}"
|
tag_message = "Bump version: {current_version} → {new_version}"
|
||||||
allow_dirty = false
|
allow_dirty = true
|
||||||
commit = false
|
commit = true
|
||||||
message = "Bump version: {current_version} → {new_version}"
|
message = "Bump version: {current_version} → {new_version}"
|
||||||
moveable_tags = []
|
moveable_tags = []
|
||||||
commit_args = ""
|
commit_args = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user