Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v2) fix: release tagging #204

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build skandha unstable docker image
name: Build skandha v2 docker image

on:
push:
Expand All @@ -24,7 +24,7 @@ jobs:
-
name: Get package version
id: get_version
run: echo version=$(git rev-parse --short "$GITHUB_SHA") >> $GITHUB_OUTPUT
run: echo version=$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT

- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
env:
Expand All @@ -43,16 +43,15 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/skandha:unstable
${{ secrets.DOCKERHUB_USERNAME }}/skandha:unstable-${{ steps.get_version.outputs.version }}
${{ secrets.DOCKERHUB_USERNAME }}/skandha:v2-${{ steps.get_version.outputs.version }}
-
name: Create GitHub release
uses: "marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "unstable"
prerelease: true
title: Release unstable-${{ steps.get_version.outputs.version }}
automatic_release_tag: v2-${{ steps.get_version.outputs.version }}
prerelease: false
title: Release v2-${{ steps.get_version.outputs.version }}
-
name: Trigger dev pipeline
run: ${{ secrets.PIPELINE_DEV_TRIGGER }}
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build skandha docker image
name: Build skandha v1 docker image

on:
push:
Expand Down Expand Up @@ -38,16 +38,15 @@ jobs:
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/skandha:${{ steps.get_version.outputs.version }}
${{ secrets.DOCKERHUB_USERNAME }}/skandha:latest
${{ secrets.DOCKERHUB_USERNAME }}/skandha:v1-${{ steps.get_version.outputs.version }}
-
name: Create GitHub release
uses: "marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.get_version.outputs.version }}
automatic_release_tag: v1-${{ steps.get_version.outputs.version }}
prerelease: false
title: Release ${{ steps.get_version.outputs.version }}
title: Release v1-${{ steps.get_version.outputs.version }}
-
name: Trigger pipeline
run: ${{ secrets.PIPELINE_TRIGGER }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
</p>
</div>

> [!IMPORTANT]
> **Skandha v1** - supports EntryPoint 0.6.0 and can be found on [master](https://github.com/etherspot/skandha/tree/master)
>
> **Skandha v2** - supports EntryPoint 0.7.0 and can be found on [develop](https://github.com/etherspot/skandha/tree/develop)

## Important links

**[Install Skandha](https://etherspot.fyi/skandha/installation)**
Expand Down
Loading