Skip to content

Commit

Permalink
Fix release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Apr 24, 2024
1 parent d539aff commit efab670
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,33 @@ name: release

on:
push:
tags:
- v*
branches:
- 'master'
- '*-release'

permissions:
contents: read

jobs:
release-notes:
check_tag:
runs-on: ubuntu-latest
continue-on-error: true

if: github.repository_owner == 'visgl' && (github.ref == 'refs/heads/master' || endsWith(github.ref, '-release'))
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Get git tags (https://github.com/actions/checkout/issues/206)
run: git fetch --tags -f

- name: Get version from git tag
run: git describe --exact-match HEAD | grep '^v'


release:
runs-on: ubuntu-latest
needs: check_tag

if: github.repository_owner == 'visgl' && jobs.check_tag.result != 'success'

env:
ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }}
Expand Down

0 comments on commit efab670

Please sign in to comment.