Manual Release #44
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: Manual Release | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
release: | |
needs: [test] | |
runs-on: ubuntu-20.04 | |
outputs: | |
version: ${{ steps.release.outputs.release }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set release | |
id: semrel | |
uses: go-semantic-release/action@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
force-bump-patch-version: true | |
- name: Output release | |
id: release | |
run: echo "::set-output name=release::${{ steps.semrel.outputs.version }}" | |
test: | |
uses: ./.github/workflows/test.yml | |
secrets: | |
auth-token: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }} | |
github-token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} | |
publish_golang: | |
needs: [test, release] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v3 | |
- name: Publish package | |
run: | | |
set -e | |
set -x | |
export MOMENTO_SDK_VERSION="${{needs.release.outputs.version}}" | |
if [ -z "$MOMENTO_SDK_VERSION"] | |
then | |
echo "Unable to determine SDK version! Exiting!" | |
exit 1 | |
fi | |
echo "MOMENTO_SDK_VERSION=${MOMENTO_SDK_VERSION}" | |
GOPROXY=proxy.golang.org go list -m github.com/momentohq/client-sdk-go@v${MOMENTO_SDK_VERSION} | |
shell: bash |