Deploying from phrase/openapi@8ecd3e48 #170
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: release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # pin@2.1.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@8c0edbc76e98fa90f69d9a2c020dcb50019dc325 # pin@2.2.1 | |
- name: Version | |
id: version | |
run: | | |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
- name: Login to DockerHub | |
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pin@v2.1 | |
with: | |
username: ${{ secrets.DOCKER_USER }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Release | |
run: | | |
make all | |
bash ./build/release.sh -xe | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ steps.version.outputs.VERSION }} | |
brew: | |
runs-on: ubuntu-latest | |
needs: release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Update Homebrew formula | |
uses: dawidd6/action-homebrew-bump-formula@e9b43cd30eec6ea80777e7e22e1526beb1675c18 # pin@v3.9.0 | |
with: | |
# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes | |
token: ${{secrets.GH_ACCESS_TOKEN}} | |
# Formula name, required | |
formula: phrase-cli | |
# Optional, will be determined automatically | |
tag: ${{github.ref_name}} | |
# Optional, will be determined automatically | |
revision: ${{github.sha}} | |
# Optional, if don't want to check for already open PRs | |
force: false |