Skip to content

Commit b4ea406

Browse files
committed
🎉 generate release
1 parent 48174dd commit b4ea406

File tree

4 files changed

+24
-43
lines changed

4 files changed

+24
-43
lines changed

.github/workflows/pre-release.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/tagged-release.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,31 @@ name: Create Release
88

99
jobs:
1010
build:
11-
name: Create Release
11+
name: Upload Release Asset
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16+
- name: Build project
17+
run: |
18+
tar --exclude-ignore=tar.exclude -cf $HOME/tiny-shell.tar .
1619
- name: Create Release
1720
id: create_release
1821
uses: actions/create-release@v1
1922
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2124
with:
2225
tag_name: ${{ github.ref }}
2326
release_name: Release ${{ github.ref }}
24-
body: |
25-
Changes in this Release
26-
- First Change
27-
- Second Change
2827
draft: false
2928
prerelease: false
29+
- name: Upload Release Asset
30+
id: upload-release-asset
31+
uses: actions/upload-release-asset@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
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
36+
asset_path: $HOME/tiny-shell.tar
37+
asset_name: tiny-shell.tar
38+
asset_content_type: application/tar

tar.exclude

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.git
2+
.github
3+
.gitignore
4+
.backup
5+
.gitpod.yml
6+
doc
7+
tar.exclude
8+
fetch
9+
icons

test.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)