Skip to content

Commit

Permalink
Correct release automation (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Chad Wilson <chadw@thoughtworks.com>
  • Loading branch information
chadlwilson authored Mar 31, 2024
1 parent df7e9b1 commit 44a0caa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release-on-pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Setup git
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- name: Build artifacts
run: |
go run build/make.go --all-platforms
Expand All @@ -24,7 +29,7 @@ jobs:
- name: Release on github
run: |
if [ -z "$version" ]; then
version=$(cd bin/distros && ls spectacle* | head -1 | sed "s/\.[^\.]*$//" | sed "s/spectacle-//" | sed | sed "s/-[a-z]*\.[a-z0-9_]*$//");
version=$(cd bin/distros && ls spectacle* | head -1 | sed "s/\.[^\.]*$//" | sed "s/spectacle-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//");
fi
echo "VERSION=$version" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id" : "spectacle",
"version" : "0.1.5",
"version" : "0.2.0",
"name" : "Spectacle",
"description" : "Markdown to HTML",
"install": {
Expand Down

0 comments on commit 44a0caa

Please sign in to comment.