Create a dev release #57
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 a dev release | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
create_a_dev_release: | |
name: create a dev release | |
runs-on: ubuntu-latest | |
env: | |
GOPRIVATE: "github.com/humanlogio/humanlog-pro" | |
GH_ACCESS_TOKEN_FOR_HUMANLOGPRO: ${{ secrets.GH_ACCESS_TOKEN_FOR_HUMANLOGPRO }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: git fetch --force --tags | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ">=1.23" | |
cache: true | |
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | |
- run: echo "${HOME}/.humanlog/bin" >> $GITHUB_PATH | |
- run: curl https://humanlog.dev/install_apictl.sh | bash | |
- uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: v2 | |
args: release --clean --draft --skip validate --config .goreleaser-dev.yaml | |
env: | |
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.S3_BINARIES_BUCKET_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_BINARIES_BUCKET_ACCESS_KEY }} | |
- run: ./script/create_version_artifacts.sh | |
env: | |
CHANNEL: "dev" | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
API_URL: "https://api.humanlog.dev" | |
HMAC_KEY_ID: ${{ secrets.DEV_HMAC_KEY_ID }} | |
HMAC_PRIVATE_KEY: ${{ secrets.DEV_HMAC_PRIVATE_KEY }} |