Skip to content

Commit

Permalink
Merge pull request #22 from loreum-org/release/holesky
Browse files Browse the repository at this point in the history
chore: Try again
  • Loading branch information
xhad authored Mar 20, 2024
2 parents 3c51850 + 13595f5 commit 4054523
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,22 @@ on:

jobs:
deploy:
name: DeploySubgraph
name: Deploy Holesky
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.x

- name: Bump version and push tag
id: tag_version
uses: miguelfito/github-bump-and-tag-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Get latest tag
id: latest-tag
run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -52,6 +43,5 @@ jobs:

- name: Deploy to Holesky
env:
VERSION_TAG: ${{ steps.tag_version.outputs.new_tag }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: export DEPLOY_KEY=${{ env.ACCESS_TOKEN }} && export VERSION_TAG=${{ env.VERSION_TAG }} && yarn deploy:holesky
run: export DEPLOY_KEY=${{ env.ACCESS_TOKEN }} && export VERSION_TAG=$LATEST_TAG && yarn deploy:holesky

0 comments on commit 4054523

Please sign in to comment.