]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fixing up more locations of the old tag naming style
authorTrenton Holmes <trenton.holmes@psware.com>
Thu, 28 Apr 2022 20:44:37 +0000 (13:44 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Sun, 1 May 2022 20:21:10 +0000 (13:21 -0700)
.github/release-drafter.yml
.github/workflows/ci.yml

index d3e2e165fe4d403157ca84c4d9044fcad4ddd57f..b52e08f35a5b5fd4e06eb66d501a363e151aee4a 100644 (file)
@@ -30,7 +30,6 @@ replacers: # Changes "Feature: Update checker" to "Update checker"
     replace: ''
 change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
 change-title-escapes: '\<*_&#@'
-tag-prefix: "ngx-"
 template: |
   # Changelog
 
index 8fe71ac9a5056efd6295130e823cf5d9b33e202c..980a3570a9e5fba8ac0ef5656a765c5fee53ee55 100644 (file)
@@ -3,8 +3,9 @@ name: ci
 on:
   push:
     tags:
-      - ngx-*
-      - beta-*
+      - 'v[0-9]+.[0-9]+.[0-9]+'
+      - 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
+      - 'beta-[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
     branches-ignore:
       - 'translations**'
   pull_request:
@@ -53,7 +54,7 @@ jobs:
 
   prepare-docker-build:
     name: Prepare Docker Pipeline Data
-    if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/ngx-') || startsWith(github.ref, 'refs/tags/beta-'))
+    if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/beta-'))
     runs-on: ubuntu-20.04
     needs:
       - documentation
@@ -388,7 +389,7 @@ jobs:
     runs-on: ubuntu-20.04
     needs:
       - build-release
-    if: github.ref_type == 'tag' && (startsWith(github.ref_name, 'ngx-') || startsWith(github.ref_name, 'beta-'))
+    if: github.ref_type == 'tag' && (startsWith(github.ref_name, 'v') || startsWith(github.ref_name, 'beta-'))
     steps:
       -
         name: Download release artifact
@@ -400,11 +401,11 @@ jobs:
         name: Get version
         id: get_version
         run: |
-          if [[ $GITHUB_REF == refs/tags/ngx-* ]]; then
-            echo ::set-output name=version::${GITHUB_REF#refs/tags/ngx-}
+          if [[ $GITHUB_REF == refs/tags/v* ]]; then
+            echo ::set-output name=version::${{ github.ref_name }}
             echo ::set-output name=prerelease::false
           elif [[ $GITHUB_REF == refs/tags/beta-* ]]; then
-            echo ::set-output name=version::${GITHUB_REF#refs/tags/beta-}
+            echo ::set-output name=version::${{ github.ref_name }}
             echo ::set-output name=prerelease::true
           fi
       -
@@ -413,7 +414,7 @@ jobs:
         uses: release-drafter/release-drafter@v5
         with:
           name: Paperless-ngx ${{ steps.get_version.outputs.version }}
-          tag: ngx-${{ steps.get_version.outputs.version }}
+          tag: ${{ steps.get_version.outputs.version }}
           version: ${{ steps.get_version.outputs.version }}
           prerelease: ${{ steps.get_version.outputs.prerelease }}
           publish: true # ensures release is not marked as draft