1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- name: Create Release Tag
- on:
- push:
- tags:
- - 'v*.*.*'
- env:
- HUSKY: '0'
- permissions:
- pull-requests: write
- contents: write
- jobs:
- build:
- name: Create Release
- if: github.repository == 'vbenjs/vue-vben-admin'
- runs-on: ubuntu-latest
- strategy:
- matrix:
- node-version: [20]
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - name: version
- id: version
- run: |
- tag=${GITHUB_REF/refs\/tags\//}
- version=${tag#v}
- major=${version%%.*}
- echo "tag=${tag}" >> $GITHUB_OUTPUT
- echo "version=${version}" >> $GITHUB_OUTPUT
- echo "major=${major}" >> $GITHUB_OUTPUT
- - uses: release-drafter/release-drafter@v6
- with:
- version: ${{ steps.version.outputs.version }}
- publish: true
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
-
-
-
-
-
-
-
-
-
-
-
|