Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for publishing crates on CI #20

Merged
merged 109 commits into from
Dec 21, 2022
Merged
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
b38b633
include publish-crates script
joao-paulo-parity Dec 1, 2022
d4b55ce
remove branch naming limitation
joao-paulo-parity Dec 1, 2022
ad2e063
handle PR with no changed files
joao-paulo-parity Dec 1, 2022
f7559d8
re-enable set -x before read -r diff_line
joao-paulo-parity Dec 2, 2022
2e7692b
change error message
joao-paulo-parity Dec 2, 2022
9846a5a
s/echo/log
joao-paulo-parity Dec 2, 2022
39925c7
augment comment
joao-paulo-parity Dec 2, 2022
72cfacd
organize variables
joao-paulo-parity Dec 2, 2022
9a87c88
fix gitignore
joao-paulo-parity Dec 2, 2022
8221ed4
stop on first manifest found
joao-paulo-parity Dec 3, 2022
0238956
only verify crates which changed for PRs
joao-paulo-parity Dec 4, 2022
a430533
wip: disable filtering for changed pr files
joao-paulo-parity Dec 4, 2022
c358def
update subpub cli option usage
joao-paulo-parity Dec 4, 2022
4aa1c78
revert a430533b0e429403767ad179773761da2e16d988
joao-paulo-parity Dec 4, 2022
4d99e8e
fix variable name
joao-paulo-parity Dec 4, 2022
0ea17b4
fix CLI option
joao-paulo-parity Dec 4, 2022
c4cab1f
enable crates.io compliance check
joao-paulo-parity Dec 4, 2022
cd24e90
fix crates.io check
joao-paulo-parity Dec 4, 2022
ed7bc09
fix crates.io compliance check
joao-paulo-parity Dec 4, 2022
cac2dda
disable crates.io compliance check
joao-paulo-parity Dec 4, 2022
cbdc198
wip: debug CI
joao-paulo-parity Dec 6, 2022
5f9c594
set target dir explictly
joao-paulo-parity Dec 6, 2022
65d7ddf
wip: debug CI
joao-paulo-parity Dec 6, 2022
fc5de0f
move diesel setup to before postgres setup
joao-paulo-parity Dec 6, 2022
1383595
fix cargo_root_dir usage
joao-paulo-parity Dec 6, 2022
d303909
reorder setup_diesel
joao-paulo-parity Dec 6, 2022
0a66db1
clear the registry's cache after a crate is committed
joao-paulo-parity Dec 7, 2022
8742b79
wip: debug CI
joao-paulo-parity Dec 7, 2022
761c57b
fix crate registry path
joao-paulo-parity Dec 7, 2022
d38dc20
also clear the downloaded crate's cache
joao-paulo-parity Dec 7, 2022
20531d8
DRY $cargo_home
joao-paulo-parity Dec 7, 2022
5a467af
better variable names
joao-paulo-parity Dec 7, 2022
e668879
update comment
joao-paulo-parity Dec 7, 2022
32e2cda
get dirname through bash
joao-paulo-parity Dec 7, 2022
9732003
enable crates.io compliance check
joao-paulo-parity Dec 7, 2022
7dbb8da
filter by publishable workspace crates on master
joao-paulo-parity Dec 7, 2022
ab6a304
only perform post-check on master branch
joao-paulo-parity Dec 7, 2022
fcac41f
display which crates failed the crates.io compliance check
joao-paulo-parity Dec 7, 2022
89cb953
better variable names
joao-paulo-parity Dec 7, 2022
af210a0
better comment
joao-paulo-parity Dec 7, 2022
03a6f13
simplify exit_code check
joao-paulo-parity Dec 7, 2022
dbfbdcb
wip: temporarily allow subpub to fail
joao-paulo-parity Dec 8, 2022
dd54b40
wip: temporarily allow subpub to fail
joao-paulo-parity Dec 8, 2022
8a8c433
wip: temporarily allow subpub to fail
joao-paulo-parity Dec 8, 2022
76e6526
use more distinctive error message for temporary errors
joao-paulo-parity Dec 8, 2022
d552ae5
accept branch customization for subpub
joao-paulo-parity Dec 8, 2022
3ff2a88
force publishing all crates with $spub_publish_all
joao-paulo-parity Dec 8, 2022
5890796
wip: try clearing the whole cache
joao-paulo-parity Dec 9, 2022
f81489c
revert clearing the whole registry
joao-paulo-parity Dec 9, 2022
f6288de
run cargo clean after publishing crate
joao-paulo-parity Dec 9, 2022
b60b3eb
reorder CARGO_REGISTRIES_LOCAL_INDEX
joao-paulo-parity Dec 9, 2022
a0f8791
exit if the crate's cache can't be cleared
joao-paulo-parity Dec 9, 2022
b6a1ec8
re-enable subpub checks
joao-paulo-parity Dec 9, 2022
01a39d8
improve comments
joao-paulo-parity Dec 9, 2022
d722664
show a diff after publishing crates
joao-paulo-parity Dec 12, 2022
702cf9b
produce git diff selectively
joao-paulo-parity Dec 12, 2022
49e03db
quieten `cargo clean`
joao-paulo-parity Dec 12, 2022
945cbfd
minor adjustments
joao-paulo-parity Dec 13, 2022
fd4742c
misc improvements
joao-paulo-parity Dec 13, 2022
d17547f
newline
joao-paulo-parity Dec 13, 2022
93b67ae
rm extraneous exit
joao-paulo-parity Dec 13, 2022
a532d7d
more strictness
joao-paulo-parity Dec 13, 2022
2950d5e
misc improvements
joao-paulo-parity Dec 13, 2022
668084f
enable new flag of subpub
joao-paulo-parity Dec 13, 2022
8aa1bb1
s/echo/log
joao-paulo-parity Dec 13, 2022
469e9c9
change emphasis
joao-paulo-parity Dec 14, 2022
57b8859
clearer PR title
joao-paulo-parity Dec 14, 2022
b9350e5
leverage CRATESIO_PUBLISH_TOKEN
joao-paulo-parity Dec 14, 2022
a5b3021
misc improvements
joao-paulo-parity Dec 14, 2022
389c04f
s/echo/log
joao-paulo-parity Dec 14, 2022
dee13da
wip: use commit for testing
joao-paulo-parity Dec 14, 2022
5de4e08
leverage --index-url
joao-paulo-parity Dec 14, 2022
43d455d
update index-url
joao-paulo-parity Dec 14, 2022
b5a0169
enable crates.io compliance check selectively
joao-paulo-parity Dec 14, 2022
30d0ab9
better variable name
joao-paulo-parity Dec 14, 2022
cc36e94
leverage --index-api
joao-paulo-parity Dec 14, 2022
5766df9
tweak subpub args
joao-paulo-parity Dec 14, 2022
982ba2d
leverage --index-url and --index-repository
joao-paulo-parity Dec 14, 2022
291d8f6
leverage --clear-cargo-home
joao-paulo-parity Dec 14, 2022
ba35026
comment
joao-paulo-parity Dec 14, 2022
5be272d
comment
joao-paulo-parity Dec 14, 2022
be698c6
fix
joao-paulo-parity Dec 14, 2022
d9947ce
post-check only for local target
joao-paulo-parity Dec 15, 2022
38ed1a7
refactor diff handling
joao-paulo-parity Dec 15, 2022
516a152
fix usage of $SPUB_TMP
joao-paulo-parity Dec 15, 2022
e1d0c9a
fix remote url
joao-paulo-parity Dec 15, 2022
d279f42
quieten git commands
joao-paulo-parity Dec 15, 2022
5d18655
better variable name
joao-paulo-parity Dec 15, 2022
b346fd6
revert hardcoded commit
joao-paulo-parity Dec 15, 2022
fdd1def
disable -x before exiting the script
joao-paulo-parity Dec 15, 2022
a80bb16
set the branch name
joao-paulo-parity Dec 15, 2022
d5a3c54
fix typo
joao-paulo-parity Dec 15, 2022
da1c722
add $SPUB_TMP to ignored files
joao-paulo-parity Dec 15, 2022
bc2394f
fix push command
joao-paulo-parity Dec 15, 2022
0fd98f7
clear SPUB_TMP before starting
joao-paulo-parity Dec 15, 2022
dcbd288
update title and body
joao-paulo-parity Dec 15, 2022
aa4b4c0
update checkout command
joao-paulo-parity Dec 15, 2022
adb331b
fix PR API url
joao-paulo-parity Dec 15, 2022
d35f3a7
enable it for all master pushes
joao-paulo-parity Dec 15, 2022
67405de
attach generation source to commit message
joao-paulo-parity Dec 15, 2022
dcb1057
exclude crate-docs
joao-paulo-parity Dec 15, 2022
12acd8a
disable automatic publishing
joao-paulo-parity Dec 15, 2022
9b5de20
remove $target_branch if it exists
joao-paulo-parity Dec 15, 2022
d8874fc
remove stale artifacts workaround
joao-paulo-parity Dec 15, 2022
ec19868
re-enable automatic publishing for master
joao-paulo-parity Dec 15, 2022
5e5f8a6
comment on --clear-cargo-home
joao-paulo-parity Dec 15, 2022
368f393
better PR description
joao-paulo-parity Dec 16, 2022
0783f88
improve description
joao-paulo-parity Dec 19, 2022
46971cd
improve PR description
joao-paulo-parity Dec 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading