Skip to content

Commit

Permalink
release 24.01.0, update changelog, better ci handling
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Jan 5, 2024
1 parent 5e4f7f3 commit c213ce8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Create release

on:
workflow_dispatch:
push:
tags:
- v*.*.[0-9]+

permissions:
contents: write

jobs:
release:
name: Release pushed tag
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Filter CHANGELOG
run: |
sed '1,/## \[/d;/## \[/Q' CHANGELOG.md > CHANGELOG_LATEST.md
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "${{ github.ref_name }}" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
-F CHANGELOG_LATEST.md \
--generate-notes
11 changes: 6 additions & 5 deletions .github/workflows/github-packages-publish.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: Docker
name: Publish to Github Docker Hub

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

on:
# schedule:
# - cron: '38 1 * * *'
workflow_dispatch:
push:
branches: [ "master" ]
# branches: [ "master" ]
# Publish semver tags as releases.
# tags: [ 'v*.*.*' ]
tags: [ 'v*.*.*' ]
# pull_request:
# branches: [ "master" ]
# branches: [ "master" ]

env:
# Use docker.io for Docker Hub if empty
Expand All @@ -25,7 +27,6 @@ jobs:
build:

runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: read
packages: write
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [24.01/1.4.1] - 2024-01-05
## [24.01.0] - 2024-01-05
###
- retired semantic versions, new versions are based on vYEAR.MONTH.VERSION

## [23.09/1.4.1] - 2023-09-20
### Changed
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RELEASE := 'v24.01.0'
RELEASESEM := 'v1.4.2'
# RELEASESEM := 'v1.4.2'

all: build

Expand All @@ -10,8 +10,8 @@ run:
docker-compose up -d

tag-version:
-git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASESEM) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
#-git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)
git diff --exit-code && git diff --staged --exit-code && git tag -a $(RELEASE) -m 'Release $(RELEASE)' || (echo "Repo is dirty please commit first" && exit 1)


.PHONY: all build run tag-version

0 comments on commit c213ce8

Please sign in to comment.