-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 984 Bytes
/
ci.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
37
38
39
40
41
42
43
44
45
name: "Publish crate to our Margo registry"
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Select Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Package crate
run: |-
set -eu
cargo package
mkdir /tmp/crates
mv ./target/package/*.crate /tmp/crates
- name: Checkout GitHub Pages
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Publish crate
uses: integer32llc/margo-actions@main
with:
crates: /tmp/crates/*.crate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push to GitHub Pages
run: |-
set -eu
git config user.email "[email protected]"
git config user.name "Roko"
git add .
git commit -m 'Publish'
git push origin gh-pages