diff --git a/.github/workflows/docker-gh-publish.yaml b/.github/workflows/github-packages-publish.yaml similarity index 97% rename from .github/workflows/docker-gh-publish.yaml rename to .github/workflows/github-packages-publish.yaml index a65a71c..7f8c8a8 100644 --- a/.github/workflows/docker-gh-publish.yaml +++ b/.github/workflows/github-packages-publish.yaml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..804edc9 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index f2a9efb..235471c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Makefile b/Makefile index 1e4b09e..6f6ead9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -RELEASE := 'v23.09' -RELEASESEM := 'v1.6.2' +RELEASE := 'v24.01.0' +# RELEASESEM := 'v1.6.2' all: format lint build @@ -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 \ No newline at end of file diff --git a/build.sbt b/build.sbt index b2cce73..40cc1e3 100644 --- a/build.sbt +++ b/build.sbt @@ -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/