Skip to content

Commit 08ab7f3

Browse files
authored
ci: release workflow
1 parent 8775512 commit 08ab7f3

File tree

2 files changed

+23
-29
lines changed

2 files changed

+23
-29
lines changed

.github/workflows/example2.yml

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

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: release-hello-world
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-hello-world:
8+
permissions: write-all
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: compile and run
14+
run: g++ hello_world.cpp -o hello_world_mac
15+
16+
- name: Create Release
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: >-
20+
gh release create ${{ github.ref_name }}
21+
"hello_world_mac"
22+
--generate-notes
23+
--title "Version ${{ github.ref_name }}"

0 commit comments

Comments
 (0)