Skip to content

Commit 5c62cd0

Browse files
committed
Bump version to 0.2.0; use github actions to publish releases
1 parent 591c8d2 commit 5c62cd0

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ on:
1515
- '.gitignore'
1616
- '.rustfmt.toml'
1717
workflow_dispatch:
18+
env:
19+
CARGO_TERM_COLOR: always
1820
jobs:
1921
build:
2022
name: Build Releases
@@ -60,3 +62,21 @@ jobs:
6062
target/${{ matrix.os.target }}/release/memorystats.dll
6163
target/${{ matrix.os.target }}/release/memorystats.pdb
6264
target/${{ matrix.os.target }}/release/libmemorystats.so
65+
publish-release:
66+
name: Publish Release
67+
runs-on: ubuntu-latest
68+
needs: [build]
69+
if: startsWith(github.ref, 'refs/tags/')
70+
permissions:
71+
contents: write
72+
steps:
73+
- name: Download Previous Artifacts
74+
uses: actions/download-artifact@v4
75+
- name: Publish Release
76+
uses: softprops/action-gh-release@v2
77+
with:
78+
fail_on_unmatched_files: true
79+
files: |
80+
memorystats-windows/memorystats.dll
81+
memorystats-windows/memorystats.pdb
82+
memorystats-linux/libmemorystats.so

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "byond-memorystats"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
authors = ["Lucy <lucy@absolucy.moe>"]
66
license = "MPL-2.0"

0 commit comments

Comments
 (0)