Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 authored Sep 4, 2023
1 parent 70d5665 commit 8e9c5c2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release and Test

on:
push:
tags:
- "v*.*.*"
branches: [main]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install depend
run: |
sudo apt-get update
sudo apt-get install -y libssl3 pkg-config
- uses: dtolnay/rust-toolchain@stable
- name: Build binary
run: |
SQLX_OFFLINE=true cargo build -r
mv target/release/modmail modmail.bin
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: modmail.bin

0 comments on commit 8e9c5c2

Please sign in to comment.