Skip to content

Commit 14170f1

Browse files
author
Alexey Krainev
authored
Update main.yml
1 parent 5d20d04 commit 14170f1

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,23 @@ jobs:
1313
with:
1414
files: assets/ pack.mcmeta pack.png
1515
dest: release.zip
16-
- name: Send file README.md to discord channel
17-
uses: sinshutu/upload-to-discord@master
16+
- name: Create Release
17+
id: create_release
18+
uses: actions/create-release@v1
1819
env:
19-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2021
with:
21-
args: pack.png
22+
tag_name: ${{ github.ref }}
23+
release_name: Release ${{ github.ref }}
24+
draft: false
25+
prerelease: false
26+
- name: Upload Release Asset
27+
id: upload-release-asset
28+
uses: actions/upload-release-asset@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
with:
32+
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
33+
asset_path: ./release.zip
34+
asset_name: release.zip
35+
asset_content_type: application/zip

0 commit comments

Comments
 (0)