v1.22.0 #32
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: Create release tag | |
on: | |
push: | |
tags: | |
- "v[0-9]+\\.[0-9]+\\.[0-9]+" | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
bundler-cache: true | |
- name: Build assets | |
run: rake build:assets | |
- name: Create release tag | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g") | |
echo "VERSION: ${VERSION}" | |
gh release create $VERSION --generate-notes release/*.tar.gz release/*.zip release/checksums.txt | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: 831852 | |
private-key: ${{ secrets.WORKFLOW_KICKER_PRIVATE_KEY }} | |
owner: buty4649 | |
repositories: homebrew-tap | |
- name: Run update workflow for homebrew-tap | |
run: gh workflow run update.yml --repo buty4649/homebrew-tap --ref main | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} |