-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1018 Bytes
/
Copy pathprerelease.yml
File metadata and controls
46 lines (40 loc) · 1018 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
40
41
42
43
44
45
46
name: "Pre-release Build"
on:
push:
tags:
- "v*.*.*-rc*"
pull_request:
branches:
- "main"
- "dev"
jobs:
build:
name: "Build & Release"
runs-on: "windows-latest"
steps:
- name: "Clone Repo"
uses: actions/checkout@v3
- run: rustup toolchain install stable --profile minimal
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.0
with:
cache-on-failure: "true"
cache-all-crates: "true"
- name: "Cargo"
uses: actions-rs/cargo@v1
with:
command: run
args: --release --all-features
- name: "Build"
run: |
.\kindlegen.exe dict/dict.opf -verbose -dont_append_source -locale en
- name: "Publish"
uses: softprops/action-gh-release@v1
with:
prerelease: true
name: "Latest Pre-Release"
tag_name: ${{ github.ref_name }}
files: |
dict/*.mobi
permissions:
contents: write