Skip to content

DNA EVM v2.0.0-beta.6 #55

DNA EVM v2.0.0-beta.6

DNA EVM v2.0.0-beta.6 #55

Workflow file for this run

name: CD Release Pipeline
concurrency:
group: cd-${{ github.ref }}
cancel-in-progress: true
on:
release:
types: [published]
jobs:
extract-version:
name: "Extract target and version"
runs-on: ubuntu-latest
outputs:
target: ${{ steps.extract.outputs.target }}
major: ${{ steps.extract.outputs.major }}
minor: ${{ steps.extract.outputs.minor }}
patch: ${{ steps.extract.outputs.patch }}
prerel: ${{ steps.extract.outputs.prerel }}
steps:
- name: Set $USER if needed
run: |
if [ -z "$USER" ]; then
echo "USER=runner" >> "$GITHUB_ENV"
fi
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-23.11
- uses: cachix/cachix-action@v14
with:
name: apibara-public
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- id: extract
run: nix develop .#ci --accept-flake-config -c extract-version-from-tag
release:
name: "${{ needs.extract-version.outputs.target }}: Release"
needs: extract-version
uses: ./.github/workflows/cd-release.yml
if: ${{ needs.extract-version.outputs.target != '' }}
with:
target: ${{ needs.extract-version.outputs.target }}
major: ${{ needs.extract-version.outputs.major }}
minor: ${{ needs.extract-version.outputs.minor }}
patch: ${{ needs.extract-version.outputs.patch }}
prerel: ${{ needs.extract-version.outputs.prerel }}
secrets:
cachix-token: "${{ secrets.CACHIX_AUTH_TOKEN }}"
quay-username: "${{ secrets.QUAY_USER }}"
quay-password: "${{ secrets.QUAY_PASSWORD }}"