Skip to content

Add v3.8.1-20231213 to CHANGELOG.md #2

Add v3.8.1-20231213 to CHANGELOG.md

Add v3.8.1-20231213 to CHANGELOG.md #2

Workflow file for this run

---
name: packer-release
on:
push:
tags:
- v*
workflow_dispatch:
concurrency:
group: packer-release
cancel-in-progress: false
env:
VAGRANT_CLOUD_TOKEN: ${{ secrets.VAGRANT_CLOUD_TOKEN }}
BOX_ORG: ${{ github.repository_owner }}
jobs:
packer:
runs-on: macos-12
timeout-minutes: 60
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
# NOTE: Even though ST2_VERSION and BOX_VERSION are the same in the Makefile is is arguably nice to see them here.
- name: Export ST2_VERSION and BOX_VERSION
run: |
echo "ST2_VERSION=$(curl --silent \
'https://api.github.com/repos/stackstorm/st2/releases/latest' \
| jq -r .tag_name | sed 's/^v//')" >> $GITHUB_ENV
# Turn tags like v3.8.0-20230119 into just 20230119
echo BOX_VERSION=$(echo "${{ github.ref_name }}" | cut -d'-' -f2) \
>> $GITHUB_ENV
- name: Packer validate
run: make validate
- name: Packer build
run: make build
- name: Create GH Release
uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ github.ref_name }}
prerelease: false
files: |
builds/st2_${{ github.ref_name }}.ova
- name: Publish on Vagrant Cloud
run: |
echo "::group::Install coreutils for sha256sum"
brew install coreutils
echo "::endgroup::"
echo "::group::Publish on Vagrant Cloud"
make publish
echo "::endgroup::"