Skip to content

Commit 38fbeb0

Browse files
authored
Create AutoBuild.yml
1 parent df87ac7 commit 38fbeb0

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/AutoBuild.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: AutoBuild
2+
permissions:
3+
contents: write
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
pull_request:
9+
tags:
10+
- '*'
11+
12+
env:
13+
CARGO_TERM_COLOR: always
14+
15+
jobs:
16+
build:
17+
runs-on: windows-latest
18+
19+
steps:
20+
- name: Set up Rust
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
25+
- name: Check out code
26+
uses: actions/checkout@v2
27+
28+
- name: Build
29+
run: cargo build --release --target x86_64-pc-windows-msvc
30+
31+
- name: Create ZIP
32+
run: |
33+
cd target/x86_64-pc-windows-msvc/release
34+
7z a fast-cf.zip fast-cf.exe ../../../cloudflare_ipv4.txt
35+
- name: Upload to GitHub Releases
36+
uses: softprops/action-gh-release@v1
37+
with:
38+
files: target/x86_64-pc-windows-msvc/release/fast-cf.zip
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)