pre
This commit is contained in:
1 parent
7ac7d60468
commit
a3fa409eda
1 file changed
+13
-1
@@ -17,7 +17,19 @@ jobs:
|
|||||||
- name: Publish Release {{ github.event.inputs.version }}
|
- name: Publish Release {{ github.event.inputs.version }}
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
VERSION: { { github.event.inputs.version } }
|
VERSION: "{{ github.event.inputs.version }}"
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
github.rest.repos.createRelease({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
tag_name: process.env.VERSION,
|
||||||
|
});
|
||||||
|
- name: Publish PreRelease {{ github.event.inputs.version }}
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
env:
|
||||||
|
VERSION: pre-{{ github.event.inputs.version }}
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
Reference in new issue
Block a user