Merge pull request 'no CD for now' (#54) from devel into master

Reviewed-on: #54
This commit is contained in:
Christoph J. Scherr 2024-01-17 14:43:47 +01:00
commit c270405c48
1 changed files with 34 additions and 33 deletions

View File

@ -1,33 +1,34 @@
name: Cargo Check, Format, Fix, Test and publish # name: Cargo Check, Format, Fix, Test and publish
on: # on:
push: # push:
branches: # branches:
- master # - master
#
jobs: # jobs:
format: # format:
name: cargo CI # name: cargo CI
permissions: # permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the # # Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository. # # added or changed files to the repository.
contents: write # contents: write
package: write # package: write
steps: # steps:
- name: get repo # - name: get repo
uses: actions/checkout@v4 # uses: actions/checkout@v4
- name: install rust # - name: install rust
uses: dtolnay/rust-toolchain@stable # uses: dtolnay/rust-toolchain@stable
- name: config custom registry # run: cargo install cargo-workspaces
run: | # - name: config custom registry
mkdir -p ~/.cargo/ # run: |
echo "" > ~/.cargo/config.toml # mkdir -p ~/.cargo/
echo "[registry]" >> ~/.cargo/config.toml # echo "" > ~/.cargo/config.toml
# echo 'token = "Bearer ${{ secrets.CARGO_PUBLISH_CRATESIO }}"' >> ~/.cargo/config.toml # echo "[registry]" >> ~/.cargo/config.toml
echo 'cscherr = "cscherr"' >> ~/.cargo/config.toml # # echo 'token = "Bearer ${{ secrets.CARGO_PUBLISH_CRATESIO }}"' >> ~/.cargo/config.toml
echo '[registries.cscherr]' >> ~/.cargo/config.toml # echo 'cscherr = "cscherr"' >> ~/.cargo/config.toml
echo 'index = "https://git.cscherr.de/PlexSheep/_cargo-index.git"' >> ~/.cargo/config.toml # echo '[registries.cscherr]' >> ~/.cargo/config.toml
echo 'token = "Bearer ${{ GITEA_TOKEN }}"' >> ~/.cargo/config.toml # echo 'index = "https://git.cscherr.de/PlexSheep/_cargo-index.git"' >> ~/.cargo/config.toml
cat ~/.cargo/config.toml # echo 'token = "Bearer ${{ GITEA_TOKEN }}"' >> ~/.cargo/config.toml
- name: publish crates on git.cscherr.de # cat ~/.cargo/config.toml
run: | # - name: publish crates on git.cscherr.de
cargo workspaces publish --registry cscherr # run: |
# cargo workspaces publish --registry cscherr patch