Skip to content

Commit

Permalink
release: v24.01
Browse files Browse the repository at this point in the history
  • Loading branch information
soad003 committed Jan 8, 2024
1 parent aca060c commit 5acfb4f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ name: Docker
# documentation.

on:
# schedule:
# - cron: '38 1 * * *'
workflow_dispatch:
push:
branches: [ "master", "develop"]
# 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 Down
31 changes: 31 additions & 0 deletions .github/workflows/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]+.[0-9]+.[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
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ 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/).

## Unreleased
## [24.01.0] 2024-01-08
### Added
- implemented transform for tron currency
- checkpoints and loading on hdfs
### Changed
- Upgrade to Spark 3.2.4
- Change package name
- revised namespace structure (breaking call is different path)
- integrated utxo (btc, zec, ltc transform)
- Change package name graphsense-ethereum-transformation -> graphsense-spark
- integrated utxo (btc, zec, ltc, bch transform)
- revised namespace structure (BREAKING: call is different path, new --network parameter needed!)


## [23.09/1.5.1] 2023-10-25
### Fixed
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RELEASE := 'v23.09'
RELEASESEM := 'v1.6.2'
RELEASE := 'v24.01.0'
# RELEASESEM := 'v1.6.2'

all: format lint build

Expand Down Expand Up @@ -57,8 +57,8 @@ run-docker-trx-transform-local: build-docker
${RUNTRANSFORM} trx

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 test lint format build tag-version start-local-cassandra stop-local-cassandra run-local-transform build-docker test-account test-utxo
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ val packagename = "graphsense-spark"
// used for local builds
val defaultVersion = fromFile("Makefile")
.getLines
.filter(_.startsWith("RELEASESEM"))
.filter(_.startsWith("RELEASE"))
.toList
.headOption
.getOrElse("=Unknown")
.replaceAll("RELEASESEM := ", "")
.replaceAll("RELEASE := ", "")
.replaceAll("'", "")

// taken from https://alterationx10.com/2022/05/26/publish-to-github/
Expand Down

0 comments on commit 5acfb4f

Please sign in to comment.