diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a1b5d46 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,53 @@ +name: Publish release + +# on: +# push: +# tags: +# - v* + +permissions: + contents: write + +jobs: + build-ubuntu: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + run: rustup update + + - name: Build + run: cargo build --release + + - name: Archive artifact + uses: actions/upload-artifact@v4 + with: + name: neophyte-linux + path: target/release/neophyte + retention-days: 1 + + create-release: + runs-on: ubuntu-latest + timeout-minutes: 5 + needs: + - build-ubuntu + + steps: + - name: Download Linux artifact + uses: actions/download-artifact@v4 + with: + name: neophyte-linux + + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: ${{ github.ref_name }} + run: | + gh release create "$TAG" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${TAG#v}" \ + --notes-from-tag diff --git a/Cargo.lock b/Cargo.lock index ce6c5d2..dcb3466 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1108,7 +1108,7 @@ dependencies = [ [[package]] name = "neophyte" -version = "0.2.3" +version = "0.2.4" dependencies = [ "bytemuck", "flexi_logger", diff --git a/Cargo.toml b/Cargo.toml index cc2e264..8ebdf1e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "neophyte" -version = "0.2.3" +version = "0.2.4" edition = "2021" authors = ["Tim Harding"] repository = "https://github.com/tim-harding/neophyte"