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

chore: Try again #22

Merged
merged 1 commit into from
Mar 20, 2024
Merged
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
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
Loading