v0.6.3 | 2025.02.1 #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Post Release | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
issues: write | |
jobs: | |
buf_push: | |
name: Publish Protobufs | |
runs-on: ubuntu-latest | |
steps: | |
# Run `git checkout` | |
- uses: actions/checkout@v4 | |
# Install the `buf` CLI | |
- uses: bufbuild/buf-setup-action@v1 | |
# Push only the Input in `proto` to the BSR | |
- uses: bufbuild/buf-push-action@v1 | |
continue-on-error: true | |
with: | |
input: proto | |
buf_token: ${{ secrets.BUF_TOKEN }} | |
container-push: | |
name: Publish Docker Images | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: ghcr.io/onsonr/sonr:latest | |
docs-push: | |
runs-on: ubuntu-latest | |
name: Publish Tech Docs | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Git Credentials | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- run: pip install mkdocs-material | |
- run: mkdocs gh-deploy --force |