-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 908 Bytes
/
build.yml
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
name: Publish
on:
push:
tags:
- "v*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
package:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest] # no macos-latest yet
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- run: cargo +nightly install cargo-packager --locked
- run: cargo +nightly release
- name: release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.RELEASE_TOKEN }}
file: dist/discord-modloader_*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
draft: true
prerelease: ${{ contains(github.ref, 'beta') }}