From 5b815e193284cb19ad7df03a48d932d708ad13e8 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Fri, 21 Jul 2023 11:58:08 +0200 Subject: [PATCH] ci: new pipeline --- .forgejo/workflows/dev.yml | 35 ++++++++++++++++++++++++++++++++++ .forgejo/workflows/release.yml | 5 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/dev.yml diff --git a/.forgejo/workflows/dev.yml b/.forgejo/workflows/dev.yml new file mode 100644 index 0000000..7016f82 --- /dev/null +++ b/.forgejo/workflows/dev.yml @@ -0,0 +1,35 @@ +: Dev Version +run-name: ${{ github.actor }} is testing +on: ["push"] +jobs: + Release: + runs-on: docker + #container: + # image: goreleaser/goreleaser + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + #- run: goreleaser release --skip-publish --snapshot --rm-dist --debug + - name: Setup Go environment + uses: https://github.com/actions/setup-go@v2.1.3 + with: + go-version: 1.20 + - name: Run GoReleaser + uses: https://github.com/goreleaser/goreleaser-action@v4 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: release --clean + env: + GORELEASER_FORCE_TOKEN: "gitea" + - name: Upload to s3 + uses: shallwefootball/s3-upload-action@master + with: + aws_key_id: ${{ secrets.AWS_KEY_ID }} + aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}} + aws_bucket: 'kekscloud-releases' + source_dir: 'dist' + destination_dir: 'http-server-status/' + endpoint: 's3.eu-central-003.backblazeb2.com' \ No newline at end of file diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index c818b1d..18fa026 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -1,6 +1,9 @@ : Dev Version run-name: ${{ github.actor }} is testing -on: ["push"] +on: + push: + tags: + - '*' jobs: Release: runs-on: docker