From 13595f5106668ef2d8d62aa3d122308613a9d64b Mon Sep 17 00:00:00 2001 From: xhad Date: Wed, 20 Mar 2024 18:39:27 -0400 Subject: [PATCH] chore: Try again --- .github/workflows/Release.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 304ccaf..6326322 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -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 @@ -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