Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ohtaman committed Nov 19, 2024
1 parent 47b7f59 commit 31b075a
Showing 1 changed file with 10 additions and 22 deletions.
32 changes: 10 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release and Attach Artifacts
on:
push:
tags:
- "release/v*.*.*" # この形式のタグが打たれた場合に実行
- "release/v*.*.*"
workflow_dispatch:

jobs:
Expand All @@ -17,26 +17,14 @@ jobs:
with:
python-version: "3.9"

# GitHub Release の作成
- name: Create Release
id: create_release
uses: actions/create-release@v1
- name: Install gh CLI
uses: actions/setup-gh@v3
with:
tag_name: ${{ github.ref_name }} # タグ名を使用
release_name: "Release ${{ github.ref_name }}" # リリース名
body: |
🎉 New release: ${{ github.ref_name }}
Check out the attached artifacts and updates in this release!
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

# リリースにアーティファクトを添付
- name: Upload Artifacts to Release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/ # Poetry によって生成されたアーティファクトのディレクトリ
asset_name: streamlit-desktop-app-${{ github.ref_name }}.tar.gz
asset_content_type: application/gzip
- name: Create GitHub Release
id: create_release
run: |
gh release create ${{ github.ref_name }} ./dist/* \
--title "Release ${{ github.ref_name }}" \
--notes "🎉 New release: ${{ github.ref_name }}"

0 comments on commit 31b075a

Please sign in to comment.