Skip to content

Release

Release #270

Workflow file for this run

name: Release
on:
push:
branches: [master]
workflow_run:
workflows: ["Lint and Test"]
types:
- completed
workflow_dispatch:
env:
CI: true
jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-22.04
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'master' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
ref: master
token: ${{ secrets.GH_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: docker-buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
use: true
install: true
cache-binary: true
cleanup: true
- name: Release
env:
GIT_USERNAME: ${{ vars.GIT_USERNAME }}
GIT_EMAIL: ${{ vars.GIT_EMAIL }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
SSH_KEY_PASSPHRASE: ${{ secrets.SSH_KEY_PASSPHRASE }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DOCKER_HUB_USERNAME: ${{ vars.DOCKER_HUB_USERNAME }}
DOCKER_HUB_PAT: ${{ secrets.DOCKER_HUB_PAT }}
DOCKER_BUILDX_NAME: ${{ steps.docker-buildx.outputs.name }}
shell: bash
run: |
bash ./release.sh --plugins=npm,npm-post,git,github-release,docker --pre-release