Skip to content

feat: accont for gpu attributes (#1833) #770

feat: accont for gpu attributes (#1833)

feat: accont for gpu attributes (#1833) #770

Workflow file for this run

name: release
defaults:
run:
shell: bash
on:
push:
tags:
- v*
jobs:
ensure-dry-run:
runs-on: ubuntu-latest
steps:
- name: Ensure release/dry-run PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'dry-run'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
ensure-tests:
runs-on: ubuntu-latest
steps:
- name: Ensure tests PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'tests'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
ensure-tools:
runs-on: ubuntu-latest
steps:
- name: Ensure tools PASS
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'tools'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
allowed-conclusions: success
publish:
runs-on: ubuntu-latest
needs:
- ensure-dry-run
- ensure-tests
steps:
- uses: actions/checkout@v3
- run: git fetch --prune --unshallow
- uses: c-py/action-dotenv-to-setenv@v3
with:
env-file: .env
- uses: actions/setup-go@v3
with:
go-version: "${{ env.GOLANG_VERSION }}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: release version
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: release
run: make release
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: release publish
run: |
sudo rm -rf dist
make release
env:
GORELEASER_RELEASE: true
GORELEASER_MOUNT_CONFIG: true
# using PAT as homebrew is located in different repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
homebrew:
runs-on: ubuntu-latest
needs: [ publish ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: release version
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: check if pre-release
id: check
run: |
is_prerelease=$(./script/is_prerelease.sh ${{ env.RELEASE_TAG }}; echo $?)
is_mainnet=$(./script/mainnet-from-tag.sh ${{ env.RELEASE_TAG }}; echo $?)
echo "is_prerelease=${is_prerelease}" >> $GITHUB_OUTPUT
echo "is_mainnet=${is_mainnet}" >> $GITHUB_OUTPUT
- name: notify homebrew with a new release
if: contains(steps.check.outputs.is_mainnet, '0') && contains(steps.check.outputs.is_prerelease, '1')
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.GORELEASER_ACCESS_TOKEN }}
repo: akash-network/homebrew-tap
ref: refs/heads/master
workflow: akash
inputs: '{"tag": "${{ env.RELEASE_TAG }}"}'