Skip to content

Release

Release #303

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
dry_run:
type: boolean
description: 'Dry run. Compute release version only'
default: false
run_integration_tests:
type: boolean
description: 'Run integration tests'
default: true
jobs:
version:
name: Compute release version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.dryrun.outputs.release-version }}
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@v4
- name: dryrun
id: dryrun
uses: ahmadnassri/action-semantic-release@v2
with:
config: ${{ github.workspace }}/.releaserc.json
dry: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
push:
needs: version
if: ${{ ! inputs.dry_run && needs.version.outputs.version != '' }}
uses: ./.github/workflows/push.yaml
secrets: inherit
with:
run_integration_tests: $${{ inputs.run_integration_tests }}
release_version: ${{ needs.version.outputs.version }}
publish:
needs: [version, push]
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tag release
id: build
run: |
make sam-tag
env:
MAKEFLAGS: "-j 4 --output-sync=target"
S3_BUCKET_PREFIX: "observeinc-"
RELEASE_VERSION: "${{ needs.version.outputs.version }}"
- name: Cut release
id: release
uses: ahmadnassri/action-semantic-release@v2
with:
config: ${{ github.workspace }}/.releaserc.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}