Skip to content

Commit 47e1dc5

Browse files
author
yrh
committed
添加自动部署
1 parent c070b66 commit 47e1dc5

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/deployed.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Install gcc
17+
run: sudo apt install -y gcc
18+
19+
- name: Make Build dir
20+
run: mkdir build
21+
22+
- name: Build
23+
run: gcc a.c -o ./build/release
24+
25+
- name: Release
26+
uses: softprops/action-gh-release@v2
27+
with:
28+
token: ${{ secrets.PROJECTDEPLOYE }}
29+
body_path: ./CHANGELOG.md
30+
files: |
31+
./build/**
32+
./CHANGELOG.md
33+

0 commit comments

Comments
 (0)