From 98ca02a6537cdbc9f01f302004004dd951556dc1 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Tue, 28 Jun 2022 15:49:43 +0200 Subject: [PATCH] ci: add CI chore: CI attempt 2 chore: CI attempt 3 chore: Ci attempt 4 chore: CI attempt 5 chore: CI attempt 6 chore: CI attempt 7 --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..a33ad36 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +kind: pipeline +type: docker +steps: + - name: release + image: debian:bullseye + commands: + - apt update + - apt install -y + curl + jq + libarchive-dev + libcurl4-openssl-dev + pkgconf + xz-utils + - mkdir -p zig + - cd zig + # this always downloads the latest zig + - curl -o zig.tar.xz $(curl 'https://ziglang.org/download/index.json' | jq -r '.master."x86_64-linux".tarball') + - tar xf zig.tar.xz + - mv zig-linux*/* . + - export PATH="$PATH:$(pwd)" + - cd .. + - ./build.zig + + - name: publish + image: plugins/gitea-release + settings: + base_url: https://git.tilera.org + api_key: + from_secret: gitea_token + note: CHANGELOG.md + title: tag-${DRONE_TAG} + files: + - build/ac4-*.zip + + when: + event: tag + depends_on: + - release