Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeya committed Jun 8, 2024
1 parent e4d14a2 commit 4876cc9
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@ name: Create Release on Tag

on:
push:
branches: [ "master" ]
tags: '*'
tags:
- "v*"

jobs:
release:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
path: hamonikr-system
- name: Checkout
uses: actions/checkout@v4

- name: Create archives
run: |
tar --exclude=".*" -czvf ${{ github.ref_name }}.tar.gz hamonikr-system
zip -r ${{ github.ref_name }}.zip hamonikr-system -x "*/.*"
- name: Build
run: echo ${{ github.sha }} > Release.txt
- name: Test
run: cat Release.txt

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
${{ github.ref_name }}.tar.gz
${{ github.ref_name }}.zip
Release.txt
LICENSE

0 comments on commit 4876cc9

Please sign in to comment.