From ce4af9564a9bb772d59076d5b7cf0068b6079ac6 Mon Sep 17 00:00:00 2001 From: Ushitora Anqou Date: Tue, 26 Sep 2023 20:28:18 +0900 Subject: [PATCH] Add .github/workflows/release.yaml --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..22a5775 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,26 @@ +name: Release Qash + +on: + push: + tags: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + - name: Set-up OCaml + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: 5.0 + - run: opam install . --deps-only --with-test + - run: opam exec -- dune build + - run: cp _build/default/bin/main.exe qash + - uses: ncipollo/release-action@v1 + with: + allowUpdates: true + artifacts: qash +