Skip to content

Commit

Permalink
🎉 generate release
Browse files Browse the repository at this point in the history
  • Loading branch information
marchocode committed Dec 10, 2022
1 parent 48174dd commit b4ea406
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 43 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/pre-release.yml

This file was deleted.

21 changes: 15 additions & 6 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,31 @@ name: Create Release

jobs:
build:
name: Create Release
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: |
tar --exclude-ignore=tar.exclude -cf $HOME/tiny-shell.tar .
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
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: $HOME/tiny-shell.tar
asset_name: tiny-shell.tar
asset_content_type: application/tar
9 changes: 9 additions & 0 deletions tar.exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.git
.github
.gitignore
.backup
.gitpod.yml
doc
tar.exclude
fetch
icons
8 changes: 0 additions & 8 deletions test.sh

This file was deleted.

0 comments on commit b4ea406

Please sign in to comment.