feat: 🎸 Autopush Github actions

This commit is contained in:
Atsukoro1 2022-12-06 09:22:01 +01:00
parent bd6a5b6f37
commit a73274cf23
2 changed files with 21 additions and 1 deletions

20
.github/workflows/autopublic.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Publish
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CARGO_TOKEN }}

View file

@ -15,7 +15,7 @@ pub fn get_pony(name: String) -> Option<Pony> {
("luna_large", include_bytes!("../../ponies/luna_large.txt").to_vec()),
("mcintosh_large", include_bytes!("../../ponies/mcintosh_large.txt").to_vec()),
("pinkiepie_large", include_bytes!("../../ponies/pinkiepie_large.txt").to_vec()),
("rainbowdash_large", include_bytes!("../../ponies/rainbowdash_large.txt").to_vec()),
("derpy_large", include_bytes!("../../ponies/derpy_large.txt").to_vec()),
#[cfg(target_os = "linux")]
("rainbowdash", include_bytes!("../../ponies/rainbowdash.txt").to_vec()),
#[cfg(target_os = "linux")]