Skip to content

Commit

Permalink
Some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
reese authored Dec 20, 2023
1 parent b0fbc46 commit ae9a944
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/preview-release.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Release
on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
# Run only on trunk pushes that aren't a new tag release
branches: "*"
tags-ignore: "*"

env:
BUNDLE_PATH: /tmp/.bundle
Expand Down Expand Up @@ -51,9 +57,6 @@ jobs:
run: |
brew install automake bison
echo "/usr/local/opt/bison/bin:$PATH" >> $GITHUB_PATH
- run: ./script/test.sh
env:
TARGET: ${{ matrix.target }}
- run: ./script/make_release
- uses: actions/upload-artifact@v3
with:
Expand All @@ -77,6 +80,8 @@ jobs:
path: "out/release/source"
release:
runs-on: macos-latest
# Only run release build if test workflows passed
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs:
- build
- source-release
Expand Down
2 changes: 1 addition & 1 deletion script/make_release
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ $OSTYPE == "darwin"* ]]; then
fi
bison --version

TAG=$(git describe --exact-match HEAD)
TAG=$(git describe --tags --abbrev=0)
RELEASE_DIR=${RELEASE_DIR:-"tmp/releases/${TAG}-$(uname -s)/"}

./script/test.sh
Expand Down

0 comments on commit ae9a944

Please sign in to comment.