ci: binary: copy everything in a directory and make archive of it, added email-templates
This commit is contained in:
parent
19c6c0ded3
commit
6244363c1b
1 changed files with 11 additions and 6 deletions
|
|
@ -21,14 +21,19 @@ jobs:
|
|||
targets: x86_64-unknown-linux-musl
|
||||
- run: cargo build --target x86_64-unknown-linux-musl --release
|
||||
|
||||
# prepare archive
|
||||
- name: Prepare archive contents
|
||||
run: |
|
||||
mkdir -p /tmp/ezidam
|
||||
cp -v ./target/x86_64-unknown-linux-musl/release/ezidam /tmp/ezidam
|
||||
cp -v ./crates/ezidam/ezidam.toml /tmp/ezidam
|
||||
cp -rv ./crates/ezidam/static /tmp/ezidam/
|
||||
cp -rv ./crates/ezidam/templates /tmp/ezidam/
|
||||
cp -rv ./crates/email/templates /tmp/ezidam/email-templates
|
||||
|
||||
# archive
|
||||
- name: Create archive
|
||||
run: >
|
||||
tar -cvf /tmp/ezidam.tar
|
||||
-C ./crates/ezidam ezidam.toml
|
||||
-C ./ static/
|
||||
-C ./ templates/
|
||||
-C ../../target/x86_64-unknown-linux-musl/release ezidam
|
||||
run: tar -cvf /tmp/ezidam.tar /tmp/ezidam
|
||||
|
||||
# upload
|
||||
- uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue