mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Update beta-release.yaml
This commit is contained in:
parent
883fde30ca
commit
a41cf1c914
1 changed files with 9 additions and 2 deletions
11
.github/workflows/beta-release.yaml
vendored
11
.github/workflows/beta-release.yaml
vendored
|
|
@ -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 }}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue