Skip to content

Commit

Permalink
Correct release creation automation
Browse files Browse the repository at this point in the history
Signed-off-by: Chad Wilson <[email protected]>
  • Loading branch information
chadlwilson committed Mar 31, 2024
1 parent 4f45b90 commit 7b445ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-on-pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release on PR Merge
on: deployment

jobs:
deploy:
release:
if: github.event.deployment.environment == 'production'
runs-on: ubuntu-latest
env:
Expand All @@ -25,10 +25,10 @@ jobs:
go run build/make.go --all-platforms
go run build/make.go --all-platforms --distro
- name: update
- name: Release on github
run: |
if [ -z "$version" ]; then
version=$(cd deploy && ls screenshot* | head -1 | sed "s/\.[^\.]*$//" | sed "s/screenshot-//" | sed | sed "s/-[a-z]*\.[a-z0-9_]*$//");
version=$(cd deploy && ls screenshot* | head -1 | sed "s/\.[^\.]*$//" | sed "s/screenshot-//" | sed "s/-[a-z]*\.[a-z0-9_]*$//");
fi
echo "VERSION=$version" >> $GITHUB_ENV
Expand Down

0 comments on commit 7b445ae

Please sign in to comment.