Skip to content

Commit

Permalink
another try at release from PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalocasas committed Sep 27, 2024
1 parent 6babf09 commit bcfc345
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,29 @@ name: Create Release

jobs:
build:
if: github.ref == 'refs/heads/main'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.9']

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Fetch main branch
run: git fetch origin main
- name: Check if the tag is on the main branch
run: |
TAG_COMMIT=$(git rev-parse HEAD)
# Check if the tag commit is in the main branch history
if git merge-base --is-ancestor $TAG_COMMIT origin/main; then
echo "Tag has landed on main. Releasing!"
else
echo "Tag is not on main yet. Exiting."
exit 1
fi
- uses: compas-dev/compas-actions.build@v3
with:
python: ${{ matrix.python }}
Expand Down

0 comments on commit bcfc345

Please sign in to comment.