Skip to content

adding a few cosmetic changes to differentiate plaintext and secret i… #63

adding a few cosmetic changes to differentiate plaintext and secret i…

adding a few cosmetic changes to differentiate plaintext and secret i… #63

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
release:
name: SLV Release
runs-on: ubuntu-latest
steps:
- name: Setting SLV Version
run: echo "SLV_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: Releasing SLV
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: Release SLV Image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ env.SLV_VERSION }}
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
ghcr.io/${{ github.repository }}:latest
pages:
name: Deploy Static Assets to GitHub Pages
needs: release
uses: ./.github/workflows/pages.yaml
secrets: inherit