Skip to content

Commit

Permalink
release 24.01.0, better ci handling
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Jan 5, 2024
1 parent 7ad29c8 commit ca6b58f
Show file tree
Hide file tree
Showing 4 changed files with 42 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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ 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.9.0] - 2024-01-03
## [24.01.0] - 2024-01-05
### Changed
- Updated Zcash version v5.7.0 -> v5.8.0
- retired semantic versions, new versions are based on vYEAR.MONTH.VERSION

## [23.09/1.8.0] - 2023-10-12
### 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'
RELEASESEM := 'v1.9.0'
RELEASE := 'v24.01.0'
# RELEASESEM := 'v1.9.0'

all: build

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

tag-version:
-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 $(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)

.PHONY: all build run tag-version

0 comments on commit ca6b58f

Please sign in to comment.