Skip to content

Commit 91ff6d1

Browse files
committed
last
1 parent aa1674b commit 91ff6d1

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
mkdir -p assignment_4/output_cpp
3737
g++ -I /usr/include/eigen3 assignment_4/c++/*.cpp -o assignment_4/output_cpp/cpp_program
3838
chmod +x assignment_4/output_cpp/cpp_program
39+
3940
4041
- name: Build C# project
4142
run: |
@@ -64,17 +65,29 @@ jobs:
6465

6566
release:
6667
needs: build
67-
if: github.event_name == 'release'
68+
if: github.event_name == 'push' || github.event_name == 'release'
6869
runs-on: ubuntu-latest
6970
steps:
7071
- name: Download artifact
7172
uses: actions/download-artifact@v4
7273
with:
7374
name: release_artifacts
7475

75-
- name: Upload to GitHub Release
76+
- name: Create GitHub Release (자동 생성)
77+
if: github.event_name == 'push'
7678
uses: softprops/action-gh-release@v1
7779
with:
80+
tag_name: auto-${{ github.run_number }}
81+
name: "Auto Release ${{ github.run_number }}"
82+
body: "Automated release"
7883
files: assignment_4/release_artifacts.zip
7984
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
87+
- name: Upload to GitHub Release (수동 release용)
88+
if: github.event_name == 'release'
89+
uses: softprops/action-gh-release@v1
90+
with:
91+
files: assignment_4/release_artifacts.zip
92+
env:
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)