Skip to content

Commit

Permalink
Add: Create-Release-Draft
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinaS-64892 committed Sep 8, 2023
1 parent 719ee70 commit 004b150
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/UpdatePackageJsonPlasTag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
withoutvtagstr=`echo ${{ github.event.inputs.tag }} | sed -e "s/^v//"`
jq ".version|=\"${withoutvtagstr}\"" ./package.json > $tempjson
mv $tempjson ./package.json
- name: Upload-artifact
uses: actions/upload-artifact@v3
with:
name: package.json
path: ./package.json
- name: git commit
run: |
git config user.name "GitHub Action"
Expand Down
30 changes: 23 additions & 7 deletions .github/workflows/UpdateVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,28 @@ jobs:
steps:
- run: echo "HELLO MAIN"
call-Update:
needs: [StartPoint]
uses: ./.github/workflows/UpdatePackageJsonPlasTag.yml
with:
tag: ${{ github.event.inputs.tag }}
needs: [StartPoint]
uses: ./.github/workflows/UpdatePackageJsonPlasTag.yml
with:
tag: ${{ github.event.inputs.tag }}
call-TagToZip:
needs: [call-Update]
uses: ./.github/workflows/TagToZip.yml
needs: [call-Update]
uses: ./.github/workflows/TagToZip.yml
with:
tag: ${{ github.event.inputs.tag }}
Create-Release-Draft:
needs: [call-TagToZip]
runs-on: ubuntu-20.04
steps:
- uses: actions/download-artifact@v3
with:
name:
path: ./
- uses: softprops/action-gh-release@v1
with:
tag: ${{ github.event.inputs.tag }}
name: ${{ github.event.inputs.tag }}
tag_name: ${{ github.event.inputs.tag }}
draft: true
files: |
./tex-trans-tool-${{ github.event.inputs.tag }}
./package.json

0 comments on commit 004b150

Please sign in to comment.