Skip to content

Commit

Permalink
Merge pull request #7 from getgauge/correct-release
Browse files Browse the repository at this point in the history
Correct release creation automation
  • Loading branch information
chadlwilson authored Mar 31, 2024
2 parents 4f45b90 + 7b445ae commit 2557f68
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 2557f68

Please sign in to comment.