From 86c7da1ebc9cff6e1257af03f779ccfc92cd624e Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Fri, 4 Oct 2024 14:58:02 +0200 Subject: [PATCH 1/2] Add github actions. --- .github/dependabot.yml | 8 ++++++++ .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..03b0284 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" # Necessary to update action hashs. + directory: "/" + schedule: + interval: "weekly" + # Allow up to 3 opened pull requests for github-actions versions. + open-pull-requests-limit: 3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f31185c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +# Zero-Clause BSD License + +# Copyright (C) 2023 Toitware ApS. + +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted. + +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +# FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +name: Publish package +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + - 'v[0-9]+.[0-9]+.[0-9]+-*' +jobs: + create-release: + name: Create new release + runs-on: ubuntu-latest + steps: + - name: Publish + uses: toitlang/pkg-publish@v1.5.0 From 2d60ebd03dd6f8e90b6c61732ef7b0c1cfc0fc13 Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Fri, 4 Oct 2024 17:07:39 +0200 Subject: [PATCH 2/2] Update year. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f31185c..e7f813d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,6 @@ # Zero-Clause BSD License -# Copyright (C) 2023 Toitware ApS. +# Copyright (C) 2024 Toitware ApS. # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted.