-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 800 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (32 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Rust CI/CD Pipeline
on:
push:
branches: [ "master" ]
types: [ edited ]
pull_request:
branches: [ "master" ]
types: [ opened, synchronize ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
release:
needs: build
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # provided automatically by GitHub
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with: { name: dist }
- id: create_release
uses: elgohr/Github-Release-Action@v5
with:
title: Dev Build ${{ github.sha }}
tag: dev-${{ github.sha }}
prerelease: true