Skip to content

adding support to generate public key from an existing secret key #3

adding support to generate public key from an existing secret key

adding support to generate public key from an existing secret key #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
test:
name: Running Tests
uses: ./.github/workflows/test.yaml
secrets: inherit
release:
name: Release
needs: test
runs-on: ubuntu-latest
steps:
- name: Setting Xipher Version
run: echo "XIPHER_VERSION=${GITHUB_REF_NAME:1}" >> $GITHUB_ENV
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Copy wasm_exec.js to project root
run: |
docker run --rm \
-w /workspace \
-v $PWD:/workspace \
-e GITHUB_TOKEN \
-e HOMEBREW_SSH_KEY \
--entrypoint sh \
ghcr.io/goreleaser/goreleaser-cross:latest \
-c "cp \$(go env GOROOT)/misc/wasm/wasm_exec.js ./"
- name: GoReleaser - Release Xipher
run: |
docker run --rm \
-w /workspace \
-v $PWD:/workspace \
-e GITHUB_TOKEN \
-e HOMEBREW_SSH_KEY \
ghcr.io/goreleaser/goreleaser-cross:latest \
release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_SSH_KEY: ${{ secrets.HOMEBREW_SSH_KEY }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: |
${{ github.repository }}:latest
${{ github.repository }}:${{ env.XIPHER_VERSION }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.XIPHER_VERSION }}
pages:
name: Run GitHub Pages Workflow
needs: release
uses: ./.github/workflows/pages.yaml
secrets: inherit