We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bf7e72 commit 10435bfCopy full SHA for 10435bf
1 file changed
.github/workflows/ci.yml
@@ -22,3 +22,25 @@ jobs:
22
ruby-version: ${{ matrix.ruby }}
23
bundler-cache: true
24
- run: bundle exec rake
25
+
26
+ # run only on semantic version tag
27
+ release:
28
+ needs:
29
+ - test
30
+ if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.')
31
+ runs-on: ubuntu-latest
32
+ strategy:
33
+ fail-fast: true
34
+ steps:
35
+ - name: checkout
36
+ uses: actions/checkout@v4
37
38
+ # GITHUB_ENV operates like a .env file
39
+ - name: extract version
40
+ run: |
41
+ VERSION=${GITHUB_REF#refs/tags/}
42
+ CLEAN_VERSION=${VERSION#v}
43
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
44
+ echo "CLEAN_VERSION=$CLEAN_VERSION" >> $GITHUB_ENV
45
46
0 commit comments