mirror of
https://github.com/Ed94/refactor.git
synced 2024-12-21 22:44:45 -08:00
Attempt to add release versioning again...
This commit is contained in:
parent
03f5441b25
commit
1f2d3cdd42
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@ -115,20 +115,32 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
unzip ./artifact/artifact.zip -d ./artifact
|
unzip ./artifact/artifact.zip -d ./artifact
|
||||||
|
|
||||||
|
|
||||||
|
- name: Get Commit Count
|
||||||
|
run: echo ::set-output name=commit_count::$(git rev-list --count HEAD)
|
||||||
|
|
||||||
|
- name: Create Git Tag
|
||||||
|
uses: anothrNick/github-tag-action@v1.19
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
tag_name: v${{ steps.get_commit_count.outputs.commit_count }}
|
||||||
|
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: avakar/tag-and-release@v1
|
uses: actions/create-release@v3
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ ... }}
|
tag_name: v${{ steps.get_commit_count.outputs.commit_count }}
|
||||||
|
release_name: Release v${{ steps.get_commit_count.outputs.commit_count }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload refactor.exe to the release
|
- name: Upload refactor.exe to the release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v3
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -138,4 +150,3 @@ jobs:
|
|||||||
asset_path: ./artifact/refactor.exe
|
asset_path: ./artifact/refactor.exe
|
||||||
asset_name: refactor.exe
|
asset_name: refactor.exe
|
||||||
asset_content_type: application/octet-stream
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user