publish #15
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: publish | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "release version" | |
required: true | |
jobs: | |
publish: | |
if: github.repository == 'convox/rack' | |
environment: 'Publish' | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: golang-1.17 | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.17.13' | |
- name: version | |
run: echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV | |
- name: secrets | |
run: ci/secrets.sh | |
env: | |
SECRETS: ${{ toJson(secrets) }} | |
- name: publish the artifacts | |
run: ci/publish_arifacts.sh | |
- name: publish the release | |
run: go run cmd/release/main.go -publish update "${VERSION}" | |
- name: notify slack | |
run: TYPE=publish ci/slack.sh |