Skip to content

Commit

Permalink
workflow stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MeguminSama committed Nov 29, 2024
1 parent 24e5de8 commit 6673247
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[alias]
release = "packager --release -f all"
release = "packager --release -f all -v"
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Package examples
name: Publish

on:
pull_request:
branches:
- main
paths:
- ".github/workflows/build.yml"
- "./**"
push:
tags:
- "v*"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -27,3 +24,13 @@ jobs:
- 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') }}
Loading

0 comments on commit 6673247

Please sign in to comment.