Update beta-release.yaml

This commit is contained in:
Lost Paul 2024-08-05 15:17:20 +02:00 committed by GitHub
parent 883fde30ca
commit a41cf1c914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,12 @@ jobs:
id: extract_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Strip -beta from version
run: |
VERSION=${{ env.VERSION }}
RELEASE_VERSION=${VERSION%-beta}
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- name: Update manifest-beta.json
run: |
VERSION=${{ env.VERSION }}
@ -37,7 +43,7 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add manifest-beta.json
git commit -m "Update manifest-beta.json to version ${{ env.VERSION }}"
git commit -m "Update manifest-beta.json to version $VERSION"
git push origin main
- name: npm build
@ -46,7 +52,7 @@ jobs:
npm run build --if-present
- name: Set Release Name
run: echo "RELEASE_NAME=${{ env.VERSION%-beta}}" >> $GITHUB_ENV
run: echo "RELEASE_NAME=${{ env.RELEASE_VERSION }}" >> $GITHUB_ENV
- name: Create Plugin beta release
uses: ncipollo/release-action@v1.12.0
@ -56,3 +62,4 @@ jobs:
artifacts: "main.js,manifest.json,styles.css"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.VERSION }}