mirror of
https://github.com/Atsukoro1/ponyfetch.git
synced 2024-11-23 12:47:59 +01:00
feat: 🎸 Autopush Github actions
This commit is contained in:
parent
bd6a5b6f37
commit
a73274cf23
2 changed files with 21 additions and 1 deletions
20
.github/workflows/autopublic.yml
vendored
Normal file
20
.github/workflows/autopublic.yml
vendored
Normal 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 }}
|
|
@ -15,7 +15,7 @@ pub fn get_pony(name: String) -> Option<Pony> {
|
||||||
("luna_large", include_bytes!("../../ponies/luna_large.txt").to_vec()),
|
("luna_large", include_bytes!("../../ponies/luna_large.txt").to_vec()),
|
||||||
("mcintosh_large", include_bytes!("../../ponies/mcintosh_large.txt").to_vec()),
|
("mcintosh_large", include_bytes!("../../ponies/mcintosh_large.txt").to_vec()),
|
||||||
("pinkiepie_large", include_bytes!("../../ponies/pinkiepie_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")]
|
#[cfg(target_os = "linux")]
|
||||||
("rainbowdash", include_bytes!("../../ponies/rainbowdash.txt").to_vec()),
|
("rainbowdash", include_bytes!("../../ponies/rainbowdash.txt").to_vec()),
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
|
|
Loading…
Reference in a new issue