From 5d40c033ab9497009a00199c298cb6f4c2081f59 Mon Sep 17 00:00:00 2001 From: Trim Bresilla Date: Wed, 7 Feb 2024 12:08:41 +0100 Subject: [PATCH] chore(release): prepare for v0.2.1 --- .github/workflows/book.yml | 25 +++++++++++++++++++++++++ .github/workflows/release.yml | 25 +++++++++++++++++++++++++ .github/workflows/tests.yml | 22 ++++++++++++++++++++++ Cargo.toml | 2 +- 4 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/book.yml create mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml new file mode 100644 index 0000000..346bd24 --- /dev/null +++ b/.github/workflows/book.yml @@ -0,0 +1,25 @@ +name: book + +on: + push: + branches: + - develop + +jobs: + deploy_site: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + + - name: Setup mdBook + uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: 'latest' + + - run: mdbook build book --dest-dir ../docs + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..37a0c86 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: release + +on: + release: + types: [created] +jobs: + release: + name: release ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: [x86_64-unknown-linux-musl] + steps: + - uses: actions/checkout@master + - name: Compile and release + id: compile + uses: rust-build/rust-build.action@v1.4.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + TOOLCHAIN_VERSION : 1.70.0 + RUSTTARGET: ${{ matrix.target }} + ARCHIVE_TYPES: "zip tar.gz" + # ARCHIVE_NAME: "roc_${{ matrix.target }}" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..9f3cf51 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,22 @@ +name: tests + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose diff --git a/Cargo.toml b/Cargo.toml index 24e7dae..2084a68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lule" -version = "0.2.0" +version = "0.2.1" authors = ["Trim Bresilla "] description = "a command line to set 255 colors on tty's and other places that use ANSI colors" edition = "2018"