update release action
This commit is contained in:
parent
22d3039616
commit
49bf843f52
|
@ -38,26 +38,20 @@ jobs:
|
||||||
# Delete the release
|
# Delete the release
|
||||||
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID}"
|
curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID}"
|
||||||
|
|
||||||
- name: xxx
|
|
||||||
run: |
|
|
||||||
ls -l
|
|
||||||
- name: Set up Git
|
- name: Set up Git
|
||||||
run: |
|
run: |
|
||||||
git config user.email "novice88@users.noreply.github.com"
|
git config user.email "novice88@users.noreply.github.com"
|
||||||
git config user.name "novice88"
|
git config user.name "novice88"
|
||||||
|
|
||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
run: git tag -a v${{ github.run_number }} -m "Release version v${{ github.run_number }}"
|
run: git tag -a ${{ github.workflow }} -m "Release version ${{ github.workflow }}"
|
||||||
|
|
||||||
- name: Push Tag
|
- name: Push Tag
|
||||||
run: git push origin v${{ github.run_number }}
|
run: git push origin ${{ github.workflow }}
|
||||||
|
|
||||||
- name: ls
|
|
||||||
run: |
|
|
||||||
ls -l
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: "jetbra-dist/target/jetbra-all.zip"
|
artifacts: "jetbra-dist/target/jetbra-all.zip"
|
||||||
|
tag: ${{ github.workflow }}
|
Loading…
Reference in New Issue