mirror of
https://github.com/Ed94/refactor.git
synced 2024-12-21 22:44:45 -08:00
Hopefully workflow works.
This commit is contained in:
parent
d95d4a8d06
commit
935bfe63ad
36
.github/workflows/main.yml
vendored
36
.github/workflows/main.yml
vendored
@ -111,9 +111,9 @@ jobs:
|
|||||||
name: artifact
|
name: artifact
|
||||||
path: ./artifact
|
path: ./artifact
|
||||||
|
|
||||||
- name: Extract artifact
|
# - name: Extract artifact
|
||||||
run: |
|
# run: |
|
||||||
unzip ./artifact/artifact.zip -d ./artifact
|
# unzip ./artifact/artifact.zip -d ./artifact
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -123,19 +123,29 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
with:
|
with:
|
||||||
tag_name: release ${{ github.sha }}{{ github.sha | slice(0, 7) }}
|
tag_name: release
|
||||||
release_name: Release ${{ github.sha }}{{ github.sha | slice(0, 7) }}
|
release_name: Release
|
||||||
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@v1
|
||||||
|
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# with:
|
||||||
|
# upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
# asset_path: ./artifact/refactor.exe
|
||||||
|
# asset_name: refactor.exe
|
||||||
|
# asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
- name: Upload release build
|
||||||
|
uses: ncipollo/release-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
name: "Release"
|
||||||
asset_path: ./artifact/refactor.exe
|
tag: release
|
||||||
asset_name: refactor.exe
|
artifacts: /artifact/artifact.zip
|
||||||
asset_content_type: application/octet-stream
|
bodyFile: Readme.md
|
||||||
|
allowUpdates: true
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user