Trying to improve main.yml again
This commit is contained in:
parent
72e3174905
commit
d6b082fcff
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
@ -37,9 +37,23 @@ jobs:
|
|||||||
[System.IO.File]::WriteAllLines($FilePath, (Get-Content $FilePath), $utf8NoBomEncoding)
|
[System.IO.File]::WriteAllLines($FilePath, (Get-Content $FilePath), $utf8NoBomEncoding)
|
||||||
Write-Host "Remove UTF-8 BOM successfully"
|
Write-Host "Remove UTF-8 BOM successfully"
|
||||||
}
|
}
|
||||||
- uses: matheusalbino/git-commit@v1.0.1
|
- name: Create Release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1.0.0
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
user-name: Equal
|
tag_name: ${{ github.ref }}
|
||||||
user-email: equal@example.com
|
release_name: Release ${{ github.ref }}
|
||||||
message: This a commit from Github Actions
|
draft: false
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
prerelease: false
|
||||||
|
- name: Upload Release Asset
|
||||||
|
id: upload-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
|
asset_path: ./$Env:GITHUB_WORKSPACE\Release.zip
|
||||||
|
asset_name: Release.zip
|
||||||
|
asset_content_type: application/zip
|
||||||
|
Reference in New Issue
Block a user